Skip to content

Glossary: Testing Web Apps

queryBy

Also written: queryByRole, queryByText

A form of Testing Library query that returns null when nothing matches. Use it to check that something isn't on the page.

Where the book teaches it

Related terms

getByfindBy