Vitest
A strong pick. 2nd of 10 testing tools.
Vitest is a fast test runner built on Vite. It is Jest-compatible and covers unit, component and real-browser tests. It is the strongest default for new JavaScript and TypeScript projects today. Its use is growing much faster than Jest's, and survey satisfaction is very high.
Best for: Any new JavaScript or TypeScript project that wants a fast, Jest-compatible unit and component test runner with native ESM and TypeScript, and an optional real-browser mode.
Scores
Overall8.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 9.0, likely 8.5 to 9.5
Vitest is now the default unit and component test runner for new projects. It is fast, Jest-compatible, actively maintained, paid for, and rated highest in surveys. Its usage is growing much faster than Jest's. Yearly breaking majors and dev-server advisories are the main costs, and Playwright remains the pick for full end-to-end tests.
- npm downloads trend vs peers: About 10x growth; now leads Jest by about 3x
- 2025.stateofjs.com/en-US/libraries/testing: Survey expects it to overtake Jest
- blog.openreplay.com/vitest-5-changes: Vitest 5 brings speed gains along with breaking changes
- blog.cloudflare.com/voidzero-update: Funded core team
GPT-6.2 Sol: 8.7, likely 7.7 to 9.7
Vitest is my first choice for unit and component testing in a new Vite project and a strong choice for modern Node.js projects. Its typed tooling, real-browser component tests, active maintenance, and framework backing give it an edge over Jest for that use. Suite-specific performance, major-version migration costs, and Playwright Test’s advantage for full browser journeys keep the recommendation scoped.
- github.com/vitest-dev/vitest/releases/tag/v5.1.1: Current stable release includes fixes across the runner, coverage, and Browser Mode
- angular.dev/guide/testing: Angular CLI makes Vitest its default for new applications
- 2025.stateofjs.com/en-US/awards: High retention and rising survey adoption
- dev.to/subito/we-migrated-10144-tests-from-jest-to-vitest-in-3-weeks-the-honest-ai-assisted-truth-527: Independent large-suite migration shows performance tuning and migration costs
- playwright.dev/docs/intro: Playwright Test is designed for end-to-end browser suites
Needed by many8.1
How many developers need a tool for this job?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Most JavaScript and TypeScript projects need a unit test runner, and Vitest is not tied to one framework or to Vite apps only. Browser Mode widens it to component tests. Full end-to-end testing is still Playwright's job, which keeps the score below 9.
- category.job: Unit, component and browser tests are needed in most projects
- 2025.stateofjs.com/en-US/libraries/testing: Testing tools are used across most respondents; Vitest is near the top
- Vitest works without a Vite app config: Usable in Node libraries and non-Vite frontends
GPT-6.2 Sol: 8.2, likely 7.0 to 9.2
Unit testing is useful across JavaScript and TypeScript, and Vitest serves Node.js libraries and services as well as web apps. Browser Mode extends that reach across several frontend frameworks. The modern Node.js and Vite requirements narrow its fit for older stacks, and the surveys do not measure how many projects need this particular combination.
- vitest.dev/guide/features.html: Node environments, TypeScript, watch mode, and coverage
- vitest.dev/guide/browser: Real-browser testing across several frontend frameworks
- vitest.dev/guide/migration: Node.js and Vite version requirements
Helps a lot8.9
How well does it do the job for those who need it?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
Vitest has a fast watch mode, native ESM and TypeScript, a Jest-compatible API, built-in coverage, typed tests, and real-browser component testing. Vitest 5 adds speed gains of 8 to 25%, vi.when, a trace view and vitest doctor. Its limits are mocking edge cases and little speed gain for suites that create many jsdom environments.
- blog.openreplay.com/vitest-5-changes: Vitest 5 features and performance figures
- sitepoint.com/vitest-vs-jest-2026-migration-benchmark: Independent benchmark: about 5 min for Vitest vs about 14 min for Jest on a large CI suite
- npm hasTypes: Ships its own TypeScript types
- dev.to/56_kode/migration-from-jest-to-vitest-a-real-world-experience-with-2900-tests-39np: User report of migrating 2,900 tests
GPT-6.2 Sol: 8.8, likely 7.8 to 9.8
Vitest 5.1.1 combines typed assertions, targeted watch reruns, coverage, and real-browser component testing, and the release improves assertion diffs. Subito measured slower default runs in some repositories and needed worker tuning, so performance depends on the suite. The agent guide documents a common mistake where generated tests use Jest’s mocking API. Playwright Test has a more complete workflow for end-to-end browser testing.
- vitest.dev/guide/features.html: Typed testing features, watch mode, and coverage
- github.com/vitest-dev/vitest/releases/tag/v5.1.1: Assertion diff, worker, and browser fixes in the current patch
- dev.to/subito/we-migrated-10144-tests-from-jest-to-vitest-in-3-weeks-the-honest-ai-assisted-truth-527: Independent migration timings show sensitivity to worker settings
- main.vitest.dev/guide/learn/writing-tests-with-ai: Documents incorrect Jest calls and other common agent mistakes
- playwright.dev/docs/intro: Dedicated end-to-end runner with browser isolation and tracing
Holds up over time8.9
Will it still be a good choice in two years?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
The project had 1,294 commits and 48 releases in the last year, and 846 contributors. Its core team is paid through VoidZero, which is now part of Cloudflare, plus Open Collective. The ecosystem is moving towards it and away from Jest. The yearly breaking majors keep the score just below the top.
- github commitsLastYear / releasesLastYear: 1,294 commits and 48 releases
- github contributors: 846 contributors
- blog.cloudflare.com/voidzero-update: VoidZero team at Cloudflare; Vitest stays MIT and vendor-neutral
- opencollective.com/vitest: Ongoing paid maintenance payouts to contributors
- blog.openreplay.com/vitest-5-changes: List of Vitest 5 breaking changes
GPT-6.2 Sol: 8.7, likely 7.6 to 9.6
Vitest recorded 1,294 commits and 48 GitHub releases in a year, and Cloudflare backs the VoidZero team. A reported watch-mode regression got a merged fix in six days, and the project documents which release lines receive backports. Major upgrades still bring runtime and behavior changes, and Remotion reported a browser rendering regression while evaluating 5.0.
- github commitsLastYear, github releasesLastYear, github contributors: 1,294 commits, 48 GitHub releases, and 846 contributors
- blog.cloudflare.com/voidzero-joins-cloudflare: VoidZero’s team joined Cloudflare with a commitment to ongoing support
- github.com/vitest-dev/vitest/pull/11829: Watch-mode fix merged November 3 and shipped in 5.1.1
- vitest.dev/releases.html: Regular 5.1 patches and backports to 5.0 and 4.1
- vitest.dev/guide/migration: Vitest 5 changes minimum versions and mock defaults
- github.com/remotion-dev/remotion/issues/11067: Downstream tests identified rendering and stability issues during the 5.0 upgrade
Used widely8.1
How many use it, and is that growing?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
Downloads rose from 72M to 723M per 4 weeks, a ratio of about 10x against a median of 4.1. That is now about three times Jest, whose ratio is 1.8. Some downloads come from scaffolds and frameworks that install it by default. The ecosyste.ms dependents count of 30.5k repos lags Jest's 2.1M because the project is younger, but surveys confirm fast-rising use.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 722.7M vs 72.0M, about 10x growth
- peers Jest downloads: Jest 246M, ratio 1.8, below the median
- dependents repos: 30,558 repos, behind older peers
- atmarkit.itmedia.co.jp/ait/articles/2603/11/news053.html: State of JS 2025: largest usage gain (+14 points)
- bluesky posts: 81 posts, the most in the category
GPT-6.2 Sol: 7.2, likely 6.0 to 8.4
Four-week npm downloads grew about 10.0 times year over year, well above the 4.1 catalog baseline, and surveys support the adoption trend. CI and framework defaults turn each project into many installs, so the 723 million downloads give little indication of the number of direct choices. Ecosyste.ms found about 30,600 dependent repositories, far below Jest’s count, though Vitest leads both Jest and Playwright in the bundle’s Bluesky activity.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: 723 million versus 72 million, about 10.0 times against the 4.1 baseline
- dependents, peers dependentRepos, github stars, bluesky posts, peers blueskyPosts: 30,558 repos, 11,085 packages, 17,416 stars, and 81 Bluesky posts
- survey.stackoverflow.co/2026/technology/data: 19.4% reported extensive Vitest use versus 20.8% for Jest and 24.9% for Playwright
- 2025.stateofjs.com/en-US/awards: Vitest and Playwright each gained 14 percentage points in survey usage
- angular.dev/guide/testing: New Angular CLI projects install Vitest by default
Vouched for9.0
Who stands behind it being good?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
State of JS 2025 shows about 97% positive opinion and the most interest in the category, and the survey expects Vitest to overtake Jest. Many independent migration reports and benchmarks agree. Major frameworks and toolchains such as Nuxt, SvelteKit, Angular and Vite+ build on it or default to it.
- 2025.stateofjs.com/en-US/libraries/testing: Survey commentary: Vitest climbing fast, Jest satisfaction falling
- atmarkit.itmedia.co.jp/ait/articles/2603/11/news053.html: About 97% positive and about 83% interest
- sitepoint.com/vitest-vs-jest-2026-migration-benchmark: Independent benchmark favours Vitest
- Framework defaults: Default runner in many Vite-based frameworks and Angular's newer CLI
GPT-6.2 Sol: 9.0, likely 8.0 to 10.0
State of JavaScript 2025 reports 97% retention among Vitest users. Angular CLI uses it by default, Storybook builds its component testing addon on it, and Miro migrated about 70,000 application tests from Jest. These sources cover different uses, though the survey is self-selected and the migration results reflect individual codebases.
- 2025.stateofjs.com/en-US/awards: 97% retention among surveyed Vitest users
- angular.dev/guide/testing: Default unit runner for new Angular CLI projects
- storybook.js.org/docs/writing-tests/integrations/vitest-addon/migration-guide: Storybook’s component testing addon uses Vitest Browser Mode
- nothing-else.blog/blog/we-migrated-70000-tests-from-jest-to-vitest-yes-in-2-months: Miro engineer reports migrating 70,000 application tests from Jest
Safe7.1
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
There were three advisories in 24 months, two of them critical, all in the UI and API servers. They matter only when those servers listen or are exposed to a network. Fixes shipped with safe defaults: allowWrite and allowExec are off for non-localhost hosts. It is a dev dependency with 13 direct dependencies, an MIT licence and no Scorecard data, so the risk is moderate rather than low.
- advisories last24Months: 3 advisories, 2 critical
- github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp: Critical bug needs an exposed UI server on Windows; patched in 4.1.0 and 3.2.5
- npm dependencies: 13 direct dependencies
- scorecard: No OpenSSF Scorecard data
- npm license: MIT
GPT-6.2 Sol: 7.1, likely 5.9 to 8.2
Vitest uses the permissive MIT license and has 13 direct dependencies before optional browser tooling. Maintainers patched the critical server flaws in the bundle and backported several fixes, but one browser-related fix needed a follow-up patch. GitHub lists additional advisories beyond the bundle, and the published fixes cover 5.1.1. The release workflow uses npm trusted publishing, provenance, and separate approval, while the missing OpenSSF Scorecard leaves other repository controls less certain.
- npm license, npm dependencies, advisories, scorecard: MIT, 13 direct dependencies, three collected advisories, and no Scorecard result
- github.com/vitest-dev/vitest/security/advisories: Upstream list includes additional Browser Mode and server advisories
- github.com/vitest-dev/vitest/security/advisories/GHSA-9crc-q9x8-hgqq: Critical API server advisory patched across multiple older release lines
- github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp: Critical UI server advisory patched in 4.1.0 and 3.2.5
- github.com/vitest-dev/vitest/security/advisories/GHSA-xp26-3454-mjgp: Follow-up fix shipped in 5.0.3 and was backported to 4.1.12
- github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3: Another server issue was patched in 5.0.5
- github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md: Documents trusted publishing, provenance, and approval by a second maintainer
Good
- Native ESM and TypeScript support through the Vite pipeline, so most projects need almost no configuration.
- A Jest-compatible API (expect, vi.mock, snapshots), so migrating from Jest is mostly mechanical and AI agents write correct tests easily.
- Browser Mode runs component tests in real browsers through Playwright, and Vitest 5 adds a trace view.
- Very active, funded maintenance, with dozens of releases a year and a large contributor base.
Bad
- Major versions arrive about once a year with real breaking changes, such as clearMocks defaulting to true and new output paths in Vitest 5.
- Ecosystem tools sometimes lag a major release; Cloudflare's pool pinned to v4 failed on v5.
- The UI and API servers had two critical advisories in 24 months, so they must not be exposed to a network.
- Suites that create many jsdom environments see little speed gain over Jest.
The numbers
- npm downloads, 4 weeks
- 723M ×10 in a year
- GitHub stars
- 17k
- Commits, 12 months
- 1.3k
- npm version
- 5.1.1 Nov 2026
- Versions, 12 months
- 30
- Advisories, 24 months
- 3 of 3 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (vitest-dev/vitest), npm (vitest), OSV and the OpenSSF Scorecard.
Testing tools
- 8.9Playwright
- 8.9Vitest
- 7.8React Testing Library
- 6.7Jest
- 6.6WebdriverIO
- 6.4Cypress
- 6.0Mocha
- 5.4AVA
- 5.1Jasmine
- 5.0Node Tap