React Testing Library · Concept
userEvent
user-event simulates browser-like user interactions for Testing Library tests. Prefer a session from userEvent.setup() and use its methods for actions such as clicks and keyboard input.
Last updated
Syntax
userEvent.setup(options?): UserEventIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
fireEventuserEvent.clickuserEvent.keyboarduserEvent.setup