Skip to content
masterclass Buddy

React Testing Library · Method

userEvent.pointer

user.pointer simulates pointer-device interactions such as presses, releases, and movement. It accepts one action or a sequence of actions, but jsdom does not provide real browser layout.

Last updated

Syntax

user.pointer(input: PointerInput): Promise<void>

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

Subscribe
  • PointerInput
  • PointerActionInput
  • PointerTarget
  • SelectionTarget
  • pointerMap

Source: Pointer | Testing Library. Checked 2026-11-03.