Skip to content
masterclass Buddy

React Testing Library · Matcher

toHaveValue

React Testing Library's render mounts a component and returns DOM helpers. Use screen or the returned queries to find elements, including asynchronous content.

Last updated

Syntax

render(Component)

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

Subscribe
  • screen
  • fireEvent
  • findAllByText
  • DOM Testing Library
  • custom render
  • wrapper

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