compare
Mocha vs Vitest
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Mocha | Vitest |
|---|---|---|
| Language | JavaScript | TypeScript |
| Licence | MIT | MIT |
| Stars | 23k | 17k |
| Latest | v12.0.3 | v5.0.3 |
| Last push | 2026-10-05 | 2026-10-06 |
| Release cadence | about 11 days between releases | about 10 days between releases |
| Active contributors | 13 commit authors on the default branch in the last 90 days | 77 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Vitest replaces Mocha. Alternatives to Mocha →
Full replacementRuns describe and it style tests with assertions and mocks built in.
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
Vitest
- v5.0.32026-09-30Isolate result.status between repeats runs - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in <samp>(5dbeb)…
- v5.0.22026-09-25Bind process in case global is overwritten - by @AriPerkkio in <samp>(0b792)</samp>
- v5.0.12026-09-15ui:
- v5.0.02026-09-03Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-stan…
- v5.0.0-rc.42026-08-31Parse files statically in vitest list by default - by @sheremet-va in <samp>(51e94)</samp>pre-release
Mocha
✓ signed The latest release, v12.0.3, carries a signature GitHub verified.
Loading the security report
Vitest
✓ signed The latest release, v5.0.3, carries a signature GitHub verified.
Loading the security report