The queryBy Variant
Learn about the queryBy query variant in this lesson.
We'll cover the following...
Starter project
The starter project for this lesson is a similar project to the projects we worked on in previous lessons. The project contains the following test:
test("Should not initially render person name", () => {
render(<PersonPage id={0} />);
expect(screen.getByText("Herman Vandervort")).not.toBeInTheDocument();
});
The test checks that the ...