testing-library/react-testing-library
Some data may be outdated — see provenance labels.
🐐 Simple and complete React DOM testing utilities that encourage good testing practices. observed · 2026-09-30
Health v2 · maintenance only
89/100
- Activity 91
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 76
- age_days: 3137
- days_rel: 54
- days_push: 54
- n_releases_24m: 6
Adoption not part of the score
19655 stars · 1169 forks observed · 2026-09-30
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-19, confidence 0.99
React Testing Library is a lightweight JavaScript library that provides utilities for testing React components by interacting with the DOM as a user would. It builds on top of DOM Testing Library and encourages tests that avoid implementation details and focus on user behavior.
Use cases
- write maintainable unit tests for React components
- verify UI behavior without relying on component internals
- test accessibility features of a React app
- simulate user interactions in Jest or other test runners
- migrate existing Enzyme tests to a more user‑centric approach
- create custom render utilities for shared context providers
When to choose
- You need a testing library that promotes user‑centric testing for React.
- Your project uses Jest, Vitest, or any environment with DOM APIs.
- You want to avoid testing implementation details and focus on observable UI behavior.
When to avoid
- You require a full test runner or framework (React Testing Library is not a test runner).
- You are testing non‑React code or need language‑specific features outside of JavaScript/TypeScript.
Facets
library · maturity active
testing ui-components cli developer-tools testing web-development browser cli react-testing-library jest dom-testing user-event accessibility nodejs
10 sources
- readme: https://github.com/testing-library/react-testing-library · fetched 2026-09-30 · d24a342400ff
- homepage: https://testing-library.com/react · fetched 2026-10-05 · 6cbad718f3ab
- site_page: https://testing-library.com/docs · fetched 2026-10-05 · 294680c6ca00
- site_page: https://testing-library.com/docs/recipes · fetched 2026-10-05 · e707259ba080
- site_page: https://testing-library.com/docs/queries/about · fetched 2026-10-05 · 1bb7d31eef5f
- site_page: https://testing-library.com/docs/react-testing-library/example-intro · fetched 2026-10-05 · f66b3a236a0e
- site_page: https://testing-library.com/docs/react-testing-library/setup · fetched 2026-10-05 · 67bfcb205775
- site_page: https://testing-library.com/docs/react-testing-library/api · fetched 2026-10-05 · 098799db6085
- site_page: https://testing-library.com/docs/dom-testing-library/intro · fetched 2026-10-05 · 273a42fd0eae
- site_page: https://testing-library.com/docs/react-testing-library/migrate-from-enzyme · fetched 2026-10-05 · 8a7a50993c53
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| testing-library/react-testing-library | main | 89 |
For agents
markdown · JSON · MCP: product_card(name="testing-library/react-testing-library")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem