FindSoftware

DOM Testing Library

JavaScript utilities for testing DOM nodes, with queries that find elements the way users do.

DOM Testing Library is a JavaScript package for testing DOM nodes, the elements a page renders. Its queries look up nodes the way a user finds them on the page, and it installs from npm as a development dependency. The documentation sits within the wider Testing Library family.

Worth knowing

The README says the DOM nodes can be simulated with jsdom, which Jest provides by default, or taken from a browser. Framework bindings such as React Testing Library are separate packages built on this one.

Identity

Status
Active
Maintainer
Kent C. Dodds3
First release
20188

Rendering and deploy

Install with
npm4

Releases

Current major version
107
Last release
2026-09-137

Adoption

GitHub stars
3,3432
npm downloads a week
114,714,0266
Contributors
1859
Dependent repositories
1,412,04410
Dependent packages
4,56410

Why these figures do not compare

Sources

  1. 2026-11-16: links
    testing-library.com/docs/dom-testing-library/intro/
  2. 2026-11-16: links, License, Written in, GitHub stars
    api.github.com/repos/testing-library/dom-testing-library
  3. 2026-11-16: Maintainer, License model
    raw.githubusercontent.com/testing-library/dom-testing-library/main/LICENSE
  4. 2026-11-16: Runtime, Categories, Install with
    raw.githubusercontent.com/testing-library/dom-testing-library/main/README.md
  5. 2026-11-16: Minimum runtime
    raw.githubusercontent.com/testing-library/dom-testing-library/v10.4.2/package.json
  6. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@testing-library/dom
  7. 2026-11-16: Current major version, Last release
    api.github.com/repos/testing-library/dom-testing-library/releases
  8. 2026-11-16: First release
    api.github.com/repos/testing-library/dom-testing-library/commits/v1.0.0
  9. 2026-11-16: Contributors
    api.github.com/repos/testing-library/dom-testing-library/contributors?per_page=1
  10. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@testing-library%2Fdom

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON