diff options
Diffstat (limited to 'src/tests/App.test.tsx')
-rw-r--r-- | src/tests/App.test.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tests/App.test.tsx b/src/tests/App.test.tsx index 4765f87..9ee1ec7 100644 --- a/src/tests/App.test.tsx +++ b/src/tests/App.test.tsx @@ -1,9 +1,13 @@ import React from "react"; -import { render } from "@testing-library/react"; +import {act, render, waitFor} from "@testing-library/react"; import App from "../App"; -test("renders app to body", () => { - const { container } = render(<App />); - expect(container).toBeInTheDocument(); +test("renders app to body", async () => { + await act(async () => { + const {container} = render(<App/>); + await waitFor(() => { + expect(container).toBeInTheDocument(); + }); + }); }); |