DOM Testing Library
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
What DOM Testing Library is
DOM Testing Library is a JavaScript library of utilities for testing DOM nodes. Its main utilities query the DOM for elements the way a user finds them on a page. Tests can run against a DOM simulated with JSDOM, which Jest provides by default, or in a real browser. The utilities operate on DOM nodes rather than component instances. Its guiding principle is that tests should resemble how the software is used. The package installs from npm as a development dependency. The documentation site also covers framework and tool-specific implementations.
Written from the project's README, read .
- Category
- Browser automation
- License
- MIT
- Language
- JavaScript
- Changelog
- Releases on GitHub
Repository metrics
Status
activeLast commit within 90 days of the fetch date.Computed from the last commit date and the archive flag on the fetch date. See the status rules.
Alternatives
Listed browser automation tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from DOM Testing Library's, with its source.
React Testing Library: Browsers: jsdom under Node (commonly with Jest), or a browser running a webpack (or similar) bundle. source: Docs: Setup
Nightwatch.js: Browsers: Chrome, Firefox, Safari, Edge. source: Docs: What is Nightwatch?
CodeceptJS: Browsers: Chromium, WebKit, Firefox through the Playwright helper; other helpers use Puppeteer or WebDriver. source: README
Taiko: Browsers: Chrome/Chromium, Microsoft Edge, Opera (unverified), Firefox (experimental). source: Docs: Frequently asked questions
Playwright: Browsers: Chromium, Firefox, WebKit; branded Google Chrome and Microsoft Edge. source: Docs: Browsers
Cypress: Browsers: Chrome-family browsers (including Edge and Chrome for Testing), Firefox; WebKit experimental. source: Docs: Launching Browsers
Selenium: Browsers: Chrome, Edge, Firefox, Internet Explorer, Safari. source: Docs: Supported Browsers
Playwright for Python: Browsers: Chromium, Firefox, WebKit on Linux, macOS and Windows. source: README
How to install
npm install --save-dev @testing-library/domQuestions
Is DOM Testing Library open source?
Yes. DOM Testing Library is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.
Is DOM Testing Library maintained?
On 2026-09-22, the last commit to the default branch was on 2026-09-13, so the listed status is active. Rule: Last commit within 90 days of the fetch date.
How many GitHub stars does DOM Testing Library have?
3,332 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.
What language is DOM Testing Library written in?
The repository's primary language, as reported by the GitHub API, is JavaScript.
How do I install DOM Testing Library?
The README gives this command: npm install --save-dev @testing-library/dom
Sources
- GitHub REST API: repository, read
- GitHub REST API: commits, read
- GitHub REST API: latest release, read
- GitHub REST API: contributors, read
- README, read