Mocha

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

mocha@12.0.3 was published on 2026-10-01. Its manifest declares 16 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is ^20.19.0 || >=22.12.0.

All Mocha versions · Permanent reference to 12.0.3

Package specifications

Version12.0.3
License declarationMIT
Published2026-10-01T04:37:57.410Z
Node.js requirement^20.19.0 || >=22.12.0
Type declarationsNot declared
Runtime dependency count16
Peer requirement count0
Optional dependency count0
Minified size97.22 KiB
Minified + gzip31.29 KiB
Unpacked distribution size1409.51 KiB
Published file count74
Package typemodule
ES module entryNot declared
Default entry./index.js
Side effects declarationNot declared
Direct advisories0
Resolved graph dependencies24
Repository stars22905
Repository forks3140

Install Mocha 12.0.3

npm install mocha@12.0.3
pnpm add mocha@12.0.3
yarn add mocha@12.0.3

Runtime dependencies

Peer requirements

  • None declared

Optional dependencies

  • None declared

Resolved dependency graph

This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.

How to interpret the specifications

Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.

Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.

OpenSSF repository checks

Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.

Maintained10/10 — 30 commit(s) and 21 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Code-Review6/10 — Found 12/18 approved changesets -- score normalized to 6
Security-Policy10/10 — security policy file detected
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Token-Permissions10/10 — GitHub workflow tokens follow principle of least privilege
Binary-Artifacts10/10 — no binaries found in the repo
Pinned-Dependencies3/10 — dependency not pinned by hash detected -- score normalized to 3
License10/10 — license file detected
Fuzzing0/10 — project is not fuzzed
Branch-Protection5/10 — branch protection is not maximal on development and all release branches
Packaging10/10 — packaging workflow detected
SAST4/10 — SAST tool is not run on all commits -- score normalized to 4

Compare Mocha

Evidence and freshness