mocha の代わりになるライブラリ
npm テスト
同じ分類でいま一番使われているのは vitest(週 1.84億 回)です。
同じ分類のライブラリ 1行目が mocha
比較ツールで開く →| パッケージ | 週間DL | 4週比 | 最新版の公開 |
|---|---|---|---|
| mocha Classic, reliable, trusted test framework for Node.js and the browser | 1,430万 | -1.7% | 2026-10-01 |
| vitest Next generation testing framework powered by Vite | 1.84億 | +32.2% | 2026-11-02 |
| @testing-library/react Simple and complete React DOM testing utilities that encourage good testing prac | 9,493万 | +22.9% | 2026-08-27 |
| jest Delightful JavaScript Testing. | 6,003万 | +14.6% | 2026-09-18 |
| @storybook/react Storybook React renderer | 3,232万 | +27.7% | 2026-11-10 |
| uvu4年以上更新なし uvu is an extremely fast and lightweight test runner for Node.js and the browser | 687万 | +19.8% | 2022-07-03 |
| jasmine CLI for Jasmine, a simple JavaScript testing framework for browsers and Node | 132万 | -2.7% | 2026-08-15 |
| ava Node.js test runner that lets you develop with confidence. | 51.9万 | +10.8% | 2026-11-07 |
「代わり」は同じ分類に入っているライブラリです。機能や書き方は同じではないので、移る前にそれぞれの公式ドキュメントで確かめてください。