aboutsummaryrefslogtreecommitdiff
path: root/src/__tests__
diff options
context:
space:
mode:
authorHusam Salhab <47015061+hsalhab@users.noreply.github.com>2020-06-26 12:53:50 -0400
committerGitHub <noreply@github.com>2020-06-26 12:53:50 -0400
commitcdbf153a09e20b3483926bf2cd80d600105fbeae (patch)
tree48cc1d99384455af3e8a4c688ca42666c47e1a8f /src/__tests__
parent36a6781faad4380e7c401f32506707c0e48a15f5 (diff)
parent69bc5a72f72e847f42d8486ad29161f1e21239d3 (diff)
Merge pull request #7 from leonyjiang/tma58-react-navigation-setup
[TMA-58] Cleanup file structure & add react-navigation
Diffstat (limited to 'src/__tests__')
-rw-r--r--src/__tests__/App-test.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/__tests__/App-test.tsx b/src/__tests__/App-test.tsx
new file mode 100644
index 00000000..e362fb52
--- /dev/null
+++ b/src/__tests__/App-test.tsx
@@ -0,0 +1,16 @@
+/**
+ * @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';
+
+jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper');
+
+it('renders correctly', () => {
+ renderer.create(<App />);
+});