C.W.K.
Stream
Quiz · 5 questions

🧩 Component Testing — Like a User

RTL, queries, user-event, async

Level 0Test Curious
0 XP0/32 lessons0/13 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01Why does React Testing Library (RTL) discourage querying by internal state, refs, or component instance?
02What's the recommended query priority in RTL?
03What's the difference between userEvent and fireEvent?
04What's the difference between getBy, findBy, and queryBy?
05Why use a custom render helper in your tests?
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.