Skip to content
JS
Package

mocha

Classic, reliable, trusted test framework for Node.js and the browser

v12.0.2, 17 Sept 2026MITESM onlyTypes: NoneTesting
$ npm install mocha

Key numbers

As of 25 Sept 2026
Weekly downloads
10.8m
+4% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
16
Direct, from package.json
Last release
7 days ago
v12.0.2
GitHub stars
22.9k
3.2k forks
Open issues / PRs
192 / 49
Contributors
-
Commits, last 52 weeks
405

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15m20mSept 2025Mar 2026Sept 2026High 15.5m (25 Aug 2026)Low 5.9m (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.

10,779,633 downloads last week, 53,782,341 in the last month. The 12-month change of +4% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
8211 in total
Latest version
12.0.2, 17 Sept 20267 days ago
First published
8 Nov 2011
Last push to GitHub
23 Sept 20261 day before the snapshot
Repository archived
No
Open issues
192
Open pull requests
49
Commits, last 52 weeks
405
Dependents on npm
11,207

Major versions

  1. v12 first release 12.0.0, 31 Aug 2026
  2. v11 first release 11.0.0, 11 Nov 2024
  3. v10 first release 10.0.0, 1 May 2022
  4. v9 first release 9.0.0, 7 Jun 2021
  5. v8 first release 8.0.0, 10 Jun 2020
  6. v7 first release 7.0.0, 4 Jan 2020
  7. v6 first release 6.0.0, 18 Feb 2019
  8. v5 first release 5.0.0, 18 Jan 2018
  9. v4 first release 4.0.0, 3 Oct 2017
  10. v3 first release 3.0.0, 1 Aug 2016
  11. v2 first release 2.0.0, 22 Oct 2014
  12. v1 first release 1.0.0, 24 Mar 2012
  13. v0 first release 0.0.1, 22 Nov 2011

Recent releases

VersionPublished
12.0.217 Sept 2026
12.0.111 Sept 2026
12.0.031 Aug 2026
11.8.02 Aug 2026
11.7.621 May 2026
11.7.55 Nov 2025
11.7.41 Oct 2025
11.7.330 Sept 2025
11.7.21 Sept 2025
11.7.124 Jun 2025
11.7.018 Jun 2025
11.6.09 Jun 2025
11.5.023 May 2025
11.4.019 May 2025
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
^20.19.0 || >=22.12.0
Runtimes
-
Unpacked size (npm)
1.4 MB
Dependencies (16)
msdiffglobdebugjs-yamlchokidarminimatchpicocolorsworkerpoolbrowser-stdoutfind-up-simpleis-path-insidesupports-colorstrip-json-commentsis-unicode-supportedserialize-javascript
npm install mocha

CDN

jsDelivr: 322.7k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mocha@12.0.2/
  • unpkghttps://unpkg.com/mocha@12.0.2/
  • esm.shhttps://esm.sh/mocha@12.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
jasmine-core5m-1 month agoCommonJSmocha vs jasmine-core
chai85.9m-9 months agoESM only-
tap284k-21 days agoESM + CommonJS-
tap-parser645k-4 months agoESM + CommonJS-
should3.4m-8 years agoESM + CommonJS-
tap-yaml280k-4 months agoESM + CommonJS-
jest-preview118.8k-9 months agoCommonJS-
jest35.4m-6 days agoESM + CommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.