Created
September 15, 2022 14:46
-
-
Save Clarity-89/c421d82cc4098146d524a774ba264527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { waitFor } from "@testing-library/react"; | |
//... | |
describe("ListPage", () => { | |
it("renders without breaking", async () => { | |
render(<ListPage />); | |
await waitFor(() => { | |
expect( | |
screen.getByRole("heading", { name: "List of items" }) | |
).toBeInTheDocument(); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment