testing-library/eslint-plugin-testing-library
ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3.5
- age_days: 2558
- days_rel: 162
- days_push: 7
- n_releases_24m: 53
Adoption not part of the score
1063 stars · 168 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An ESLint plugin that enforces best practices and catches common mistakes when writing tests with Testing Library. It provides lint rules like await-async-queries, no-debugging-utils, and prefer-screen-queries for JavaScript/TypeScript projects using React, Vue, Angular, and other frameworks.
Use cases
- lint testing library tests for common mistakes
- enforce best practices in react component tests
- catch missing await on async queries in tests
- prevent committing debug utils like screen.debug
- configure eslint rules for testing library
- lint vue or angular tests written with testing library
When to choose
- your project uses Testing Library with ESLint and you want automated guardrails
- you want to catch async query mistakes and debugging leftovers in CI
- you maintain a team codebase and want consistent test quality
When to avoid
- your project does not use Testing Library
- you do not use ESLint in your workflow
- you need runtime test tooling rather than static linting
Facets
plugin · maturity active
linter testing developer-tools testing developer-tools frontend web-development eslint-plugin testing-library linting best-practices dom-testing react vue angular nodejs javascript
7 sources
- readme: https://github.com/testing-library/eslint-plugin-testing-library · fetched 2026-08-28 · 234a91cc9a9f
- homepage: https://npmx.dev/eslint-plugin-testing-library · fetched 2026-08-29 · a01b846cb468
- site_page: https://npmx.dev/package-docs/eslint-plugin-testing-library/v/7.16.2 · fetched 2026-08-29 · bf1c887bb638
- site_page: https://npmx.dev/docs/semantic-versioning-policy.md · fetched 2026-08-29 · 3a0a7a339b78
- site_page: https://npmx.dev/about · fetched 2026-08-29 · 22ede7bec7ae
- site_page: https://docs.npmx.dev · fetched 2026-08-29 · d0beed0d9052
- site_page: https://npmx.dev/package-changelog/eslint-plugin-testing-library/v/7.16.2 · fetched 2026-08-29 · 4bf7689a7a61
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| testing-library/eslint-plugin-testing-library | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="testing-library/eslint-plugin-testing-library")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem