testing-library/dom-testing-library
🐙 Simple and complete DOM testing utilities that encourage good testing practices. observed · 2026-08-28
Health v2 · maintenance only
46/100
- Activity 51
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3071
- days_rel: 402
- days_push: 294
- n_releases_24m: 1
Adoption not part of the score
3332 stars · 473 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
DOM Testing Library is a lightweight JavaScript library providing utilities for querying and interacting with DOM nodes in tests, in a way that mimics how real users find elements (by label text, role, visible text). It is the core API of the Testing Library family, with framework wrappers for React, Vue, Angular, and others, and works with any test runner that provides DOM APIs such as Jest with JSDOM.
Use cases
- test web ui components in a user-centric way
- query dom elements by label text or aria role in tests
- write maintainable frontend tests that survive refactors
- simulate user events and wait for async dom updates
- test react vue or angular components with testing library
- improve accessibility by testing with semantic queries
When to choose
- you want user-centric UI tests that avoid implementation details
- you need framework-agnostic DOM query utilities for Jest, Vitest, Mocha, or a real browser
- you want tests that double as accessibility checks
When to avoid
- you need a test runner or assertion framework - it is neither
- you are testing non-DOM code such as Node backend logic
- you want snapshot or implementation-detail testing of component internals
Facets
library · maturity active
testing e2e-testing ui-components testing frontend web-development accessibility developer-tools browser dom-testing jsdom jest user-centric-testing queries accessibility-testing nodejs javascript
10 sources
- readme: https://github.com/testing-library/dom-testing-library · fetched 2026-08-28 · dcb5add1f695
- homepage: https://testing-library.com/dom · fetched 2026-08-29 · 273a42fd0eae
- site_page: https://testing-library.com/docs · fetched 2026-08-29 · 294680c6ca00
- site_page: https://testing-library.com/docs/recipes · fetched 2026-08-29 · e707259ba080
- site_page: https://testing-library.com/docs/queries/about · fetched 2026-08-29 · 1bb7d31eef5f
- site_page: https://testing-library.com/docs/dom-testing-library/install · fetched 2026-08-29 · b4fe2d48b8ff
- site_page: https://testing-library.com/docs/dom-testing-library/example-intro · fetched 2026-08-29 · 74efd7216bdf
- site_page: https://testing-library.com/docs/dom-testing-library/setup · fetched 2026-08-29 · 6a9e234b6db1
- site_page: https://testing-library.com/docs/dom-testing-library/api · fetched 2026-08-29 · 5f52c3045698
- site_page: https://testing-library.com/docs/dom-testing-library/cheatsheet · fetched 2026-08-29 · 098883e9d7a9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| testing-library/dom-testing-library | main | 46 |
For agents
markdown · JSON · MCP: product_card(name="testing-library/dom-testing-library")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem