Skip to content
JS
Package

@testing-library/react-hooks

Simple and complete React hooks testing utilities that encourage good testing practices.

v8.0.1, 18 Jun 2022MITCommonJSTypes: BundledTestingReact
$ npm install @testing-library/react-hooks

Key numbers

As of 25 Sept 2026
Weekly downloads
1.8m
-9% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
4 years ago
v8.0.1
GitHub stars
5.3k
230 forks
Open issues / PRs
29 / 14
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.1m (3 Mar 2026)Low 1m (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.

1,838,867 downloads last week, 9,725,324 in the last month. The 12-month change of -9% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
037 in total
Latest version
8.0.1, 18 Jun 20224 years ago
First published
19 Jun 2019
Last push to GitHub
30 Jan 2024968 days before the snapshot
Repository archived
No
Open issues
29
Open pull requests
14
Commits, last 52 weeks
0
Dependents on npm
317

Major versions

  1. v8 first release 8.0.0, 10 Apr 2022
  2. v7 first release 7.0.0, 24 May 2021
  3. v6 first release 6.0.0, 18 May 2021
  4. v5 first release 5.0.0, 13 Jan 2021
  5. v4 first release 4.0.0, 7 Jan 2021
  6. v3 first release 3.0.0, 16 Oct 2019
  7. v2 first release 2.0.0, 9 Aug 2019
  8. v1 first release 1.0.0, 19 Jun 2019

Recent releases

VersionPublished
8.0.118 Jun 2022
8.0.010 Apr 2022
7.0.231 Aug 2021
7.0.130 Jun 2021
7.0.024 May 2021
6.0.018 May 2021
5.1.318 May 2021
5.1.222 Apr 2021
5.1.129 Mar 2021
5.1.01 Mar 2021
5.0.324 Jan 2021
5.0.222 Jan 2021
5.0.013 Jan 2021
4.0.112 Jan 2021
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
135 kB
Dependencies (2)
@babel/runtimereact-error-boundary
Peer dependencies (4)
reactreact-dom@types/reactreact-test-renderer
npm install @testing-library/react-hooks
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@testing-library/react-hooks@8.0.1/
  • unpkghttps://unpkg.com/@testing-library/react-hooks@8.0.1/
  • esm.shhttps://esm.sh/@testing-library/react-hooks@8.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
jsdom-testing-mocks321.8k-1 year agoESM + CommonJS-
@cypress/react88.2k-29 days agoESM + CommonJS-
qunit323.2k-3 months agoCommonJS-
detox348.6k-3 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.