Jest vs Mocha
Testing-tool requirements, dependency surface, supported engine declarations, and exact-release advisories.
| Specification | jest 30.5.2 | mocha 12.0.3 |
|---|---|---|
| Latest version | 30.5.2 | 12.0.3 |
| License | MIT | MIT |
| Runtime dependencies | 4 | 16 |
| Peer requirements | node-notifier | None declared |
| Node.js requirement | ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 | ^20.19.0 || >=22.12.0 |
| Type declarations | Bundled declarations | Not declared |
| Gzip size | Not measured | 31.29 KiB |
| Unpacked size | 6.54 KiB | 1409.51 KiB |
| Published files | 7 | 74 |
| Direct advisories | 0 | 0 |
How to use this comparison
Choose according to your required APIs, runtime, integration constraints, and license terms. A smaller provider bundle or higher download count does not establish the best choice. Measurements use the same provider scenario; application imports and peer dependencies can change the outcome.
Check each exact release
- jest@30.5.2 — jest@30.5.2 was published on 2026-09-18. Its manifest declares 4 runtime dependencies and 1 peer requirement. Type declarations are bundled according to the package metadata. The declared Node.js requirement is ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0.
- mocha@12.0.3 — 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.
Evidence and freshness
- https://registry.npmjs.org/jest/30.5.2 — retrieved 2026-10-29T05:10:03.610Z
- https://api.deps.dev/v3/systems/npm/packages/jest/versions/30.5.2 — retrieved 2026-10-29T05:10:03.760Z
- https://api.deps.dev/v3/systems/npm/packages/jest/versions/30.5.2:dependencies — retrieved 2026-10-28T23:30:44.864Z
- https://api.deps.dev/v3/projects/github.com%2Fjestjs%2Fjest — retrieved 2026-10-29T05:10:04.005Z
Evidence and freshness
- https://registry.npmjs.org/mocha/12.0.3 — retrieved 2026-10-29T05:09:29.829Z
- 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-29T05:09:29.965Z
- https://bundlephobia.com/api/size?package=mocha%4012.0.3 — retrieved 2026-10-28T23:30:34.196Z
- https://api.deps.dev/v3/projects/github.com%2Fmochajs%2Fmocha — retrieved 2026-10-29T05:09:30.162Z