GitHub

Best npm test frameworks

Unit and integration test runners for JavaScript and TypeScript. vitest leads with about 177M real installs a week, followed by jest with about 61.2M.

packagereal installs / weeknpm / weeknoiselast releaseconfidence
1. vitestNext generation testing framework powered by Vite 177M 177,345,625 under 1% Nov 2026 high
2. jestDelightful JavaScript Testing. 61.2M 61,245,594 under 1% Sep 2026 high
3. mochaClassic, reliable, trusted test framework for Node.js and the browser 14.8M 14,788,225 under 1% Oct 2026 high
4. uvuuvu is an extremely fast and lightweight test runner for Node.js and the browser 6.85M–6.86M 6,859,149 under 1% Jul 2022 high
5. jasmineCLI for Jasmine, a simple JavaScript testing framework for browsers and Node 1.36M 1,359,168 under 1% Aug 2026 high
6. avaNode.js test runner that lets you develop with confidence. 516K–518K 517,601 under 1% Oct 2026 high
7. tapA Test-Anything-Protocol library for JavaScript 376K–377K 376,912 under 1% Nov 2026 high

Ranked by real installs. That measures use, not quality: read the notes below before choosing. Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count. Noise: the share of npm's count that mirror spikes and crawlers account for. What remains still includes CI and dependency installs. Rows are refreshed in rotation, the oldest here on Nov 6, 2026.

How do they differ?

Vitest fits projects already on Vite and reuses their config. Jest is still the default in many React and older Node codebases, with a large ecosystem of matchers and plugins. Mocha only runs tests, so you choose your own assertion and mocking libraries.

Check a package