blob: aec6be41545b886836289905ab9c232c467f9bd7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import React from "react";
import {act, waitFor} from "@testing-library/react";
import { renderWithProviders } from "./utils";
import App from "../App";
test("renders app to body", async () => {
await act(async () => {
const {container} = renderWithProviders(<App/>);
await waitFor(() => {
expect(container).toBeInTheDocument();
});
});
});
|