React Testing Library · Method
userEvent.type
userEvent.type simulates browser-like typing in a test. It handles focus, keyboard and input events, and value updates instead of dispatching just one event.
Last updated
Syntax
await user.type(element, text)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
userEvent.setup()fireEventuserEvent.clickscreen.getByRole