Testing · Junior · Question 43 of 78
Why use screen instead of queries returned by render?
- ✓Correct answer:
screenis bound todocument.body, so you don't have to destructure queries from everyrender - 2
screenis faster - 3Queries from
renderdon't supportgetByRole
Explanation
Testing Library recommends screen: tests are shorter and you can add queries without changing the render line.