mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-23 23:55:27 +00:00
chore: add example with test cases (#1702)
PR adding TestsExample app which should include test cases for e.g. PRs. It also removes package-lock.json since yarn is used.
This commit is contained in:
14
TestsExample/__tests__/App-test.js
Normal file
14
TestsExample/__tests__/App-test.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @format
|
||||
*/
|
||||
|
||||
import 'react-native';
|
||||
import React from 'react';
|
||||
import App from '../App';
|
||||
|
||||
// Note: test renderer must be required after react-native.
|
||||
import renderer from 'react-test-renderer';
|
||||
|
||||
it('renders correctly', () => {
|
||||
renderer.create(<App />);
|
||||
});
|
||||
Reference in New Issue
Block a user