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.
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.