Vitest vs Jest
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Vitest is a dependency in 1,314 (27.0%) and Jest in 396 (8.1%): Vitest is 3.3× as common. Among repos created in the last 90 days that use a testing tool, Vitest is in 65.0% and Jest in 6.8%, against 56.4% and 17.6% of older ones. 61 projects list both, often a sign of a migration or of a monorepo with several apps.
Testing npm Updated Nov 17, 2026
Side by side
| Vitest | Jest | |
|---|---|---|
| Agent projects that use it | 1,314 | 396 |
| Rank in testing | #1 | #5 |
| In new repos with a testing tool (last 90 days) | 65.0% | 6.8% |
| In older repos with one | 56.4% | 17.6% |
| Downloads, last 7 days | 185M | 60.2M |
| GitHub stars | 17.4K | 45.5K |
| Last push to its repo | Nov 17, 2026 | Nov 16, 2026 |
| License | MIT | MIT |
| Funding | Yes | Yes |
| Projects that list both | 61 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Vitest | Jest |
|---|---|---|---|
| Claude Code | 2,617 | 32.7% | 7.6% |
| GitHub Copilot | 2,350 | 26.4% | 7.3% |
| Cursor | 1,990 | 25.2% | 11.9% |
| Gemini CLI | 422 | 34.6% | 10.0% |
| OpenAI Codex | 409 | 35.7% | 7.6% |
| OpenCode | 304 | 32.2% | 6.9% |
| OpenClaw | 241 | 38.6% | 0% |
| Devin Desktop | 231 | 25.5% | 17.3% |
| Kiro | 125 | 27.2% | 16.0% |
| Roo-Code | 90 | 17.8% | 22.2% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Vitest
Next-generation testing framework powered by Vite with native ESM.
Most often used with it:
| jsdom | 41.6% of its projects |
|---|---|
| TypeScript | 93.7% of its projects |
| Testing Library | 36.3% of its projects |
| Vite | 50.3% of its projects |
| ESLint | 62.9% of its projects |
npm install vitest
Jest
Delightful JavaScript testing framework with minimal configuration.
Most often used with it:
| Testing Library | 44.7% of its projects |
|---|---|
| ESLint | 77.5% of its projects |
| TypeScript | 86.9% of its projects |
| Prettier | 53.0% of its projects |
| ts-node | 33.1% of its projects |
npm install jest
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.