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
| Version | 12.0.3 |
|---|---|
| License declaration | MIT |
| Published | 2026-10-01T04:37:57.410Z |
| Node.js requirement | ^20.19.0 || >=22.12.0 |
| Type declarations | Not declared |
| Runtime dependency count | 16 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | 97.22 KiB |
| Minified + gzip | 31.29 KiB |
| Unpacked distribution size | 1409.51 KiB |
| Published file count | 74 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | ./index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 24 |
| Repository stars | 22905 |
| Repository forks | 3140 |
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
- ms ^2.1.3
- diff ^9.0.0
- glob ^13.0.0
- debug ^4.3.5
- js-yaml ^5.0.0
- chokidar ^5.0.0
- minimatch ^10.2.2
- picocolors ^1.1.1
- workerpool ^10.0.0
- browser-stdout ^1.3.1
- find-up-simple ^1.0.1
- is-path-inside ^4.0.0
- supports-color ^8.1.1
- strip-json-comments ^5.0.3
- is-unicode-supported ^0.1.0
- serialize-javascript ^7.1.1
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.
- argparse@3.0.4 — indirect
- balanced-match@4.0.4 — indirect
- brace-expansion@5.0.12 — indirect
- browser-stdout@1.3.1 — direct
- chokidar@5.0.0 — direct
- debug@4.4.3 — direct
- diff@9.0.0 — direct
- find-up-simple@1.0.1 — direct
- glob@13.0.6 — direct
- has-flag@4.0.0 — indirect
- is-path-inside@4.0.0 — direct
- is-unicode-supported@0.1.0 — direct
- js-yaml@5.5.0 — direct
- lru-cache@11.5.3 — indirect
- minimatch@10.2.6 — direct
- minipass@7.1.3 — indirect
- ms@2.1.3 — direct
- path-scurry@2.0.2 — indirect
- picocolors@1.1.1 — direct
- readdirp@5.1.1 — indirect
- serialize-javascript@7.1.4 — direct
- strip-json-comments@5.0.3 — direct
- supports-color@8.1.1 — direct
- workerpool@10.0.3 — direct
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.
| Maintained | 10/10 — 30 commit(s) and 21 issue activity found in the last 90 days -- score normalized to 10 |
|---|---|
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Code-Review | 6/10 — Found 12/18 approved changesets -- score normalized to 6 |
| Security-Policy | 10/10 — security policy file detected |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Token-Permissions | 10/10 — GitHub workflow tokens follow principle of least privilege |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 3/10 — dependency not pinned by hash detected -- score normalized to 3 |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Branch-Protection | 5/10 — branch protection is not maximal on development and all release branches |
| Packaging | 10/10 — packaging workflow detected |
| SAST | 4/10 — SAST tool is not run on all commits -- score normalized to 4 |
Compare Mocha
Evidence and freshness
- https://registry.npmjs.org/mocha/12.0.3 — retrieved 2026-10-29T01:43:20.724Z (stale snapshot; refresh pending)
- https://bundlephobia.com/api/size?package=mocha%4012.0.3 — retrieved 2026-10-28T23:30:34.196Z
- https://api.deps.dev/v3/systems/npm/packages/mocha/versions/12.0.3:dependencies — retrieved 2026-10-28T23:30:33.944Z
- https://api.deps.dev/v3/systems/npm/packages/mocha/versions/12.0.3 — retrieved 2026-10-29T01:43:20.862Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fmochajs%2Fmocha — retrieved 2026-10-28T23:01:32.552Z (stale snapshot; refresh pending)