Lightlines
By itechmeat

react-testing-library

itechmeat1.4k installs

React component tests that work like your users.

What it does

Guides writing React component tests that check user-visible behavior with accessible queries and simulated interactions.

When to use it

Use when writing React component tests, selecting elements, simulating user events, or testing asynchronous UI behavior.

How to use it

It changes how the agent writes React component tests by favoring accessible queries and realistic user interactions.

What you provide

  • An existing project

Latest review

What you need · 1

The guide uses @testing-library/react; React 19 requires version 16.1.0 or later.


Access · 1

This skill

npm install --save-dev @testing-library/react @testing-library/dom

Execute

Installs React testing packages