Common query options (except TextMatch)

Quite a few of the React Testing Library query functions share some common options. It is important to know and understand how to use them, as they can make querying for elements in complex DOM structures much easier.

I don't think these are particularly hard to use, but the challenge is remembering which options exist and when to use them.

In this lesson we'll cover all of the common ones except TextMatch (the most important one), which will be in the next lesson.

Loading full lesson content & code...

Ready to try running tests for this lesson?