Skip to content

Commit da4957d

Browse files
committed
✅ App
1 parent 24dae84 commit da4957d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

__tests__/App.test.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from "react";
2+
import renderer from "react-test-renderer";
3+
4+
import App from "../App";
5+
6+
describe("<App />", () => {
7+
it("has 1 child", () => {
8+
const tree: any = renderer.create(<App />).toJSON();
9+
expect(tree?.children?.length).toBe(1);
10+
});
11+
});

0 commit comments

Comments
 (0)