Vitest

Vitest

Vite-native next-generation testing framework that reuses the Vite config, resolve and transform pipeline, stays Jest-compatible on expect, snapshots and coverage, runs backend and non-Vite code too, with instant smart watch mode, out-of-box ESM, TypeScript and JSX support powered by Oxc, and an open-source codebase.

Vitest at vitest.dev is a free open-source Vite-native test runner, reuses Vite config resolve and transform pipeline, works without Vite and for backend code, Jest-compatible expect snapshots and coverage, straightforward Jest migration, instant smart watch mode rerunning related changes, out-of-box ESM TypeScript JSX via Oxc, npm install and Vite plugin reuse, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is Vitest free?

Vitest: Vitest is free and open-source, developed with community sponsors. It is a Vite-native test runner: by building on Vite it natively understands the Vite config and reuses the same resolve and transform pipelines, although it can also be used by projects that do not use Vite, including backend code. Its expect API, snapshots, coverage and other core features are Jest-compatible so migration from Jest is straightforward. Watch mode only re-runs the tests related to a change, described as HMR for tests, and ESM, TypeScript and JSX work out of the box, powered by Oxc. The package installs from npm and integrates with the same Vite plugins and config used by the app; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is Vitest free?

The code is free to self-host, but a hosted plan from the vendor may not be. Vitest publishes its source, so cost depends on where you run it.

How much does Vitest cost?

Vitest is free and open-source, developed with community sponsors. It is a Vite-native test runner: by building on Vite it natively understands the Vite config and reuses the same resolve and transform pipelines, although it can also be used by projects that do not use Vite, including backend code. Its expect API, snapshots, coverage and other core features are Jest-compatible so migration from Jest is straightforward. Watch mode only re-runs the tests related to a change, described as HMR for tests, and ESM, TypeScript and JSX work out of the box, powered by Oxc. The package installs from npm and integrates with the same Vite plugins and config used by the app; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check Vitest's current pricing?

On Vitest's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is Vitest?

A single runner shares the app module graph with Vite, so transforms, aliases and plugins defined for the build apply to tests unchanged; expect and snapshot APIs mirror Jest for smooth migration, and the watch set only reruns affected files as code changes.

How does pricing work?

The runner installs free under its open-source license with no purchase fee or seat count; sponsors fund maintenance, and any commercial support or hosted test service would be arranged outside the project.

How does Vitest compare with other tools in Dev Workflow & Productivity?

Vitest is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
VitestOpen sourceVitest is free and open-source, developed with community sponsors. It is a Vite-native test runner: by building on Vite it natively understands the Vite config and reuses the same resolve and transform pipelines, although it can also be used by projects that do not use Vite, including backend code. Its expect API, snapshots, coverage and other core features are Jest-compatible so migration from Jest is straightforward. Watch mode only re-runs the tests related to a change, described as HMR for tests, and ESM, TypeScript and JSX work out of the box, powered by Oxc. The package installs from npm and integrates with the same Vite plugins and config used by the app; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
JestOpen sourceJest is free open-source software released under the MIT License, copyrighted by Meta Platforms, Inc. and affiliates. It aims to work out of the box with little or no configuration on most JavaScript projects, and works with setups using Babel, TypeScript, Node, React, Angular, Vue and more. Snapshots keep track of large objects either alongside tests or embedded inline; tests are parallelized by running them in their own processes with unique global state, previously failed tests run first and runs are re-organized based on how long test files take. Code coverage is generated with the --coverage flag with no additional setup, and can cover entire projects including untested files. A custom resolver for imports makes it simple to mock objects outside the test scope, with the mock functions API for spying on calls in readable syntax, and assertions such as toEqual, toStrictEqual, toHaveProperty, toMatchSnapshot and toThrowError provide rich failure context. The project reports more than 100 million downloads; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
AvaOpen sourceAva is free open-source software released under the MIT License, copyrighted by Sindre Sorhus. It is a test runner for Node.js with a concise API, detailed error output, embrace of new language features and thread isolation that lets developers write with confidence. It is described as minimal and fast, runs tests concurrently, enforces writing atomic tests, exposes no implicit globals, includes TypeScript definitions, and offers a magic assert, an isolated environment for each test file, Promise support, async function support and Observable support. Assertion messages are enhanced and syntax-highlighted in diffs, stack traces are cleaned of unrelated lines, and a TAP reporter is available; in CI Ava detects parallel builds and splits test files across workers so every test still runs. Internals are fully ESM with a bias away from CommonJS, and TypeScript projects require the @ava/typescript@7 package; Ava supports the latest release of any Node.js major version that Node itself supports. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

Vitest's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: Vitest is free and open-source, developed with community sponsors. It is a Vite-native test runner: by building on Vite it natively understands the Vite config and reuses the same resolve and transform pipelines, although it can also be used by projects that do not use Vite, including backend code. Its expect API, snapshots, coverage and other core features are Jest-compatible so migration from Jest is straightforward. Watch mode only re-runs the tests related to a change, described as HMR for tests, and ESM, TypeScript and JSX work out of the box, powered by Oxc. The package installs from npm and integrates with the same Vite plugins and config used by the app; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Tool Information

  • Official Websitevitest.dev
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates