Skip to content

Commit 3e648bd

Browse files
committed
refactor: Move App.js to src/App
1 parent 21d1482 commit 3e648bd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/** @format */
2-
31
import { AppRegistry } from 'react-native';
4-
import App from './App';
52
import { name as appName } from './app.json';
3+
import App from './src/App';
64

75
AppRegistry.registerComponent(appName, () => App);

src/App/__tests__/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import renderer from 'react-test-renderer';
3+
4+
import App from '..';
5+
6+
test('should render properly', () => {
7+
const tree = renderer.create(<App />).toJSON();
8+
expect(tree).toMatchSnapshot();
9+
});

App.js renamed to src/App/index.js

File renamed without changes.

0 commit comments

Comments
 (0)