aboutsummaryrefslogtreecommitdiff
path: root/src/__tests__
diff options
context:
space:
mode:
authorLeon Jiang <35908040+leonyjiang@users.noreply.github.com>2020-06-25 16:28:00 -0700
committerLeon Jiang <35908040+leonyjiang@users.noreply.github.com>2020-06-25 16:28:00 -0700
commitbc8184b1a402af0c3e54edb79b38ed8e09a6798d (patch)
tree2ac23485a81086ab4e5df2989e2002c7e67cd56a /src/__tests__
parent36a6781faad4380e7c401f32506707c0e48a15f5 (diff)
cleanup file structure, add react-navigation & basic routes
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 />);
+});