Used in agent projects
1,549
12.2% of 12,697 public repos built with AI coding agents
Rank in testing
#1 of 40
by use in those projects
Downloads
123M
npm, last 7 days, vitest
GitHub stars
17.2K
last push Oct 10, 2026
How Vitest is used
Vitest is a dependency in 1,549 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (12.2%), #1 of 40 in testing. The most used alternative there is Playwright (JavaScript). Projects that use it most often also use TypeScript (93.7%), jsdom (39.2%), Playwright (JavaScript) (35.1%). It is more common in projects set up for OpenAI Codex (32.3%) than for Devin Desktop (18.6%).
Often used with Vitest
| TypeScript | 93.7% of Vitest projects · 1.7× more than average |
|---|---|
| jsdom | 39.2% of Vitest projects · 7.3× more than average |
| Playwright (JavaScript) | 35.1% of Vitest projects · 4.0× more than average |
| Testing Library | 35.1% of Vitest projects · 4.9× more than average |
| Vite | 54.6% of Vitest projects · 2.4× more than average |
| Zod | 45.4% of Vitest projects · 2.7× more than average |
| tsx | 33.6% of Vitest projects · 3.4× more than average |
| ESLint | 63.7% of Vitest projects · 1.7× more than average |
By coding agent
| Claude Code | 24.3% of projects set up for it |
|---|---|
| GitHub Copilot | 19.4% of projects set up for it |
| Cursor | 20.3% of projects set up for it |
| OpenAI Codex | 32.3% of projects set up for it |
| Gemini CLI | 26.0% of projects set up for it |
| OpenCode | 26.9% of projects set up for it |
| Devin Desktop | 18.6% of projects set up for it |
| Kiro | 25.3% of projects set up for it |
Share of public repos configured for each agent that list Vitest as a dependency.
Install
| Package | npm install vitest |
|---|---|
| Packages counted | vitest, @vitest/coverage-v8, @vitest/ui, @vitest/browser-playwright, @vitest/browser, @vitest/eslint-plugin, @vitest/coverage-istanbul, @vitest/coverage-c8 |
| Main stacks | TypeScript / JavaScript (1,121), Next.js (343), Python (37), Rust (22) |
| Example projects | apify/apify-mcp-server, NG-ZORRO/ng-zorro-antd, un-pany/v3-admin-vite, getsentry/MobileBuildMCP, LeagueAkari/LeagueAkari |
Alternatives to Vitest
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Playwright (JavaScript) npm Cross-browser automation library for end-to-end testing. |
1,117 (8.8%) | 74.2M | 97.4K | Apache-2.0 |
| Testing Library npm Testing utilities for React encouraging testing user behavior. |
915 (7.2%) | 68.7M | 19.7K | MIT |
| Jest npm Delightful JavaScript testing framework with minimal configuration. |
702 (5.5%) | 46.3M | 45.6K | MIT |
| jsdom npm JavaScript implementation of web standards for testing DOM interactions. |
681 (5.4%) | 112M | 21.7K | MIT |
| pytest pypi Simple, powerful Python testing framework with fixtures and plugins. |
330 (2.6%) | 196M | 14.6K | — |
| Chai npm BDD/TDD assertion library for Node.js and browsers with expressive syntax. |
305 (2.4%) | 14M | 8,265 | MIT |
| Mocha npm Feature-rich JavaScript test framework for Node.js and browsers. |
281 (2.2%) | 12.6M | 22.9K | MIT |
| ts-mocha npm Mocha wrapper for running TypeScript tests directly with ts-node without compilation. |
191 (1.5%) | 573K | 196 | MIT |