Skip to content
masterclass Buddy

React Testing Library · Method

userEvent.unhover

user.unhover(element) simulates moving the pointer away from an element. It returns a promise and is used with the user-event setup API.

Last updated

Syntax

unhover(element: Element): Promise<void>

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

Subscribe
  • hover()
  • pointer()
  • setup()

Source: Convenience APIs | Testing Library. Checked 2026-11-03.