Used in agent projects
915
7.2% of 12,697 public repos built with AI coding agents
Rank in testing
#3 of 40
by use in those projects
Downloads
68.7M
npm, last 7 days, @testing-library/react
GitHub stars
19.7K
last push Aug 27, 2026
How Testing Library is used
Testing Library is a dependency in 915 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (7.2%), #3 of 40 in testing. The most used alternative there is Vitest. Projects that use it most often also use Vitest (59.5%), jsdom (52.1%), React (93.0%). It is more common in projects set up for OpenAI Codex (16.0%) than for GitHub Copilot (8.6%).
Often used with Testing Library
| Vitest | 59.5% of Testing Library projects · 4.9× more than average |
|---|---|
| jsdom | 52.1% of Testing Library projects · 9.7× more than average |
| React | 93.0% of Testing Library projects · 2.1× more than average |
| Playwright (JavaScript) | 36.5% of Testing Library projects · 4.1× more than average |
| Vite | 55.1% of Testing Library projects · 2.4× more than average |
| TypeScript | 85.0% of Testing Library projects · 1.5× more than average |
| Tailwind CSS | 63.9% of Testing Library projects · 1.8× more than average |
| ESLint | 66.6% of Testing Library projects · 1.7× more than average |
By coding agent
| Claude Code | 11.3% of projects set up for it |
|---|---|
| Cursor | 13.6% of projects set up for it |
| GitHub Copilot | 8.6% of projects set up for it |
| OpenAI Codex | 16.0% of projects set up for it |
| Gemini CLI | 13.5% of projects set up for it |
| Devin Desktop | 15.0% of projects set up for it |
| OpenCode | 11.6% of projects set up for it |
| Kiro | 15.8% of projects set up for it |
Share of public repos configured for each agent that list Testing Library as a dependency.
Install
| Package | npm install @testing-library/react |
|---|---|
| Packages counted | @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, @testing-library/dom, @testing-library/react-native, @testing-library/jest-native, @testing-library/svelte, @testing-library/react-hooks |
| Main stacks | TypeScript / JavaScript (540), Next.js (301), React Native / Expo (29), Python (19) |
| Example projects | Automattic/wp-calypso, ant-design/ant-design-web3, msrbuilds/elementor-mcp, av/remotion-bits, kovrichard/catalyst |
Alternatives to Testing Library
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Vitest npm Next-generation testing framework powered by Vite with native ESM. |
1,549 (12.2%) | 123M | 17.2K | MIT |
| Playwright (JavaScript) npm Cross-browser automation library for end-to-end testing. |
1,117 (8.8%) | 74.2M | 97.4K | Apache-2.0 |
| Jest npm Delightful JavaScript testing framework with minimal configuration. |
702 (5.5%) | 46.3M | 45.6K | MIT |
| jsdom npm JavaScript implementation of web standards for testing DOM interactions. |
681 (5.4%) | 112M | 21.7K | MIT |
| pytest pypi Simple, powerful Python testing framework with fixtures and plugins. |
330 (2.6%) | 196M | 14.6K | — |
| Chai npm BDD/TDD assertion library for Node.js and browsers with expressive syntax. |
305 (2.4%) | 14M | 8,265 | MIT |
| Mocha npm Feature-rich JavaScript test framework for Node.js and browsers. |
281 (2.2%) | 12.6M | 22.9K | MIT |
| ts-mocha npm Mocha wrapper for running TypeScript tests directly with ts-node without compilation. |
191 (1.5%) | 573K | 196 | MIT |