Skip to content
masterclass Buddy

React Testing Library · Method

fireEvent.input

fireEvent.input dispatches an input event on a DOM element. Pass the element and event properties, or create an event first and dispatch it with fireEvent.

Last updated

Syntax

fireEvent.input(node, eventProperties)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • fireEvent
  • fireEvent[eventName]
  • createEvent[eventName]
  • user-event
  • fireEvent.change
  • fireEvent.click

Source: Firing Events | Testing Library. Checked 2026-11-03.