compare
Jest vs Mocha
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Jest | Mocha |
|---|---|---|
| Language | TypeScript | JavaScript |
| Licence | MIT | MIT |
| Stars | 45k | 23k |
| Latest | v30.5.2 | v12.0.3 |
| Last push | 2026-10-18 | 2026-10-18 |
| Release cadence | about 11 days between releases | about 11 days between releases |
| Active contributors | 20 commit authors on the default branch in the last 90 days | 17 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Jest replaces Mocha. Alternatives to Mocha →
Full replacementJavaScript test runner with assertions, mocking and coverage built in.
Both replace Jasmine. Alternatives to Jasmine →
Full replacementJestJavaScript test runner with assertions, mocking and coverage built in.
Full replacementMochaJavaScript test framework for Node and browsers, using an assertion library of your choice.
Jest
- v30.5.22026-09-18[@jest/transform] Strip TypeScript types with Node when no transformer claims a .ts, .mts or .cts file (#16421)
- v30.5.12026-09-01[jest-config] Don't warn about global-only options in the config that supplies the global config - the root config a pr…
- v30.5.02026-08-28On a personal note: King Harald V of Norway passed away this morning. He ascended the throne 35 years ago, two months b…
- v30.4.22026-05-09[jest-runtime] Fix named imports from CJS modules whose module.exports is a function with own-property exports (#16150)
- v30.4.12026-05-08[jest-config, jest-core, jest-runner, jest-schemas, jest-types] Allow custom runner configuration options via tuple for…
Mocha
- v12.0.32026-10-01keep watching when the last test file is removed (#6355) (921c161)
- v12.0.22026-09-17fail nested tests on beforeEach failure (#6292) (a75b43b)
- v12.0.12026-09-11bump serialize-javascript to ^7.1.1 (#6278) (02558a3)
- v12.0.02026-08-31fixup parsing negative numbers and quoted strings (#6250) (2962875)
- v12.0.0-rc.62026-08-09deps: update dependency starlight-blog to ^0.28.0 (#6153) (6b79044)pre-release
Jest
unsigned The latest release, v30.5.2, carries no signature GitHub could verify.
Loading the security report
Mocha
✓ signed The latest release, v12.0.3, carries a signature GitHub verified.
Loading the security report