We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21d1482 commit 3e648bdCopy full SHA for 3e648bd
index.js
@@ -1,7 +1,5 @@
1
-/** @format */
2
-
3
import { AppRegistry } from 'react-native';
4
-import App from './App';
5
import { name as appName } from './app.json';
+import App from './src/App';
6
7
AppRegistry.registerComponent(appName, () => App);
src/App/__tests__/index.js
@@ -0,0 +1,9 @@
+import React from 'react';
+import renderer from 'react-test-renderer';
+
+import App from '..';
+test('should render properly', () => {
+ const tree = renderer.create(<App />).toJSON();
8
+ expect(tree).toMatchSnapshot();
9
+});
App.js renamed to src/App/index.js
0 commit comments