Skip to content

Commit 414960a

Browse files
committed
Fix running tests with Typescript
1 parent 5648f43 commit 414960a

File tree

5 files changed

+1445
-42
lines changed

5 files changed

+1445
-42
lines changed

__tests__/App.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

__tests__/App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from "react";
2+
import "react-native";
3+
// Note: test renderer must be required after react-native.
4+
import renderer from "react-test-renderer";
5+
import App from "../src/App";
6+
7+
it("renders correctly", () => {
8+
const tree = renderer.create(<App />);
9+
expect(tree).toMatchSnapshot();
10+
});

0 commit comments

Comments
 (0)