We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24dae84 commit da4957dCopy full SHA for da4957d
__tests__/App.test.tsx
@@ -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