Testing · Junior · Question 43 of 78

Why use screen instead of queries returned by render?

Explanation

Testing Library recommends screen: tests are shorter and you can add queries without changing the render line.

Further reading

Problem with a question

Testing · Junior · question 43

Test yourself

Take the Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz