Skip to content
JS
Package

@testing-library/dom

Simple and complete DOM testing utilities that encourage good testing practices.

v10.4.2, 13 Sept 2026MITESM + CommonJSTypes: BundledTesting
$ npm install @testing-library/dom

Key numbers

As of 25 Sept 2026
Weekly downloads
53.5m
+144% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
8
Direct, from package.json
Last release
11 days ago
v10.4.2
GitHub stars
3.3k
473 forks
Open issues / PRs
90 / 41
Contributors
196
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 69.9m (25 Aug 2026)Low 13.3m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

53,542,781 downloads last week, 256,601,822 in the last month. The 12-month change of +144% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
1208 in total
Latest version
10.4.2, 13 Sept 202611 days ago
First published
30 May 2019
Last push to GitHub
15 Sept 20269 days before the snapshot
Repository archived
No
Open issues
90
Open pull requests
41
Commits, last 52 weeks
2
Dependents on npm
944

Major versions

  1. v10 first release 10.0.0, 8 Apr 2024
  2. v9 first release 9.0.0, 16 Feb 2023
  3. v8 first release 8.0.0, 23 Jun 2021
  4. v7 first release 7.0.0, 12 Mar 2020
  5. v6 first release 6.0.0, 9 Aug 2019
  6. v5 first release 5.0.0, 30 May 2019
  7. v4 first release 4.2.0, 30 May 2019
  8. v0 first release 0.0.0, 30 May 2019

Recent releases

VersionPublished
10.4.213 Sept 2026
10.4.127 Jul 2025
10.4.022 Jul 2024
10.3.215 Jul 2024
10.3.15 Jul 2024
10.3.02 Jul 2024
10.2.024 Jun 2024
10.1.029 Apr 2024
10.0.08 Apr 2024
9.3.48 Jan 2024
9.3.317 Sept 2023
9.3.217 Sept 2023
8.20.116 Jun 2023
9.3.114 Jun 2023
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
2.4 MB
Dependencies (8)
lz-stringaria-querypicocolorspretty-format@babel/runtime@babel/code-frame@types/aria-querydom-accessibility-api
npm install @testing-library/dom

CDN

jsDelivr: 345.8k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@testing-library/dom@10.4.2/
  • unpkghttps://unpkg.com/@testing-library/dom@10.4.2/
  • esm.shhttps://esm.sh/@testing-library/dom@10.4.2
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.