Softwr
Vitest logo

Vitest

Fast unit test framework powered by Vite

As of 20 November 2026, Vitest is free to use. A Jest-compatible test runner built on Vite, sharing the same config and transform pipeline as your app. Softwr lists it under Testing. Vitest is available on Linux, macOS, Windows.

Overview

What is Vitest?

Vitest is a test framework for JavaScript and TypeScript projects, described by its maintainers as a next generation testing framework powered by Vite. Because it reads the project's existing Vite configuration by default, plugins and settings used for the app carry over to the tests, and a separate vitest config file can hold test-specific options. Running vitest starts a watch mode, and vitest run executes the suite once. Its documentation covers mocking, snapshot testing, reporters, a Vitest UI, coverage, parallel execution, benchmarking and in-source testing, together with a Browser Mode with guides for component testing, visual regression testing and Playwright traces. An official VS Code extension provides editor integration, and a guide describes migrating from Jest. By default, test files need .test. or .spec. in their names. Vitest is free and open source and has no paid tier, and the project is credited to VoidZero Inc. and Vitest contributors, with support through Discord and GitHub Discussions. The version shown in the current guide requires Vite 6.4.0 or later and Node 22.12.0 or later, and it installs through npm, yarn, pnpm, bun or deno. Bun users are told to run bun run test rather than bun test, which would invoke Bun's own runner. Vitest is a unit and component test runner; it is not a hosted testing service and does not itself provide cross-browser end-to-end infrastructure.

What people use it for

  • Unit testing an application already built with Vite, without a second build config
  • Migrating from Jest for faster watch-mode feedback
  • Testing TypeScript and ESM code without transform configuration

The honest half

Where does Vitest fall short?

The limits buyers hit most with Vitest: assumes Vite: projects on webpack or other bundlers lose the main advantage; and younger than Jest, so some plugins and matchers in the Jest ecosystem have no equivalent. Each is concrete and checkable: the half of a review a vendor will not write.

  • Assumes Vite: projects on webpack or other bundlers lose the main advantage
  • Younger than Jest, so some plugins and matchers in the Jest ecosystem have no equivalent
  • Jest compatibility is close but not exact, and unusual Jest configurations still need work to port

Cross-shopped

What are the alternatives to Vitest?

The closest alternatives to Vitest are Playwright, Jest and Cypress. Each is a tool buyers genuinely weigh against it, with the reason why.

  • Vitest vs Playwright

    Playwright: Covers end-to-end testing rather than unit tests, and the two are commonly used together

  • Vitest vs Jest

    Jest: Long-standing JavaScript test runner with a large ecosystem, and the tool Vitest has a migration guide from

  • Vitest vs Cypress

    Cypress: Browser-based end-to-end and component testing, an option when tests must run in a real browser

  • Vitest vs WebdriverIO

    WebdriverIO: Test automation framework for browser and mobile tests, broader than unit testing

Pricing

How much does Vitest cost?

Vitest is free to use. Taken from the vendor's own pricing page; prices move, so check before you buy.

Vitest

Free

  • Full functionality
  • Unlimited tests
  • Community support

Capabilities

What can Vitest do?

Vitest lists 4 features, including shares Vite config, jest-compatible API and fast watch mode.

  • Shares Vite config

    Same transforms, aliases and plugins as the application build

  • Jest-compatible API

    describe, it and expect work as expected, so migration is mechanical

  • Fast watch mode

    Reuses hot module replacement to re-run only affected tests

  • ESM and TypeScript native

    No extra transform configuration for modern syntax

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Is Vitest free?

Yes, open source under the MIT licence.

Is Vitest compatible with Jest?

The API is deliberately Jest-compatible and most migrations are mechanical, though unusual configurations and some ecosystem plugins need attention.

Do I need Vite to use Vitest?

It works without a Vite app but the main benefit — sharing one config and transform pipeline — only applies if you are already using Vite.

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from Vitest

Best Testing software for

Compare Vitest with

Other Testing software

  • JavaScript testing framework, moved from Meta to the OpenJS Foundation in 2022

    Open source11 researched notes
  • JavaScript test framework for Node.js and the browser, an OpenJS Foundation project

    Free plan11 researched notes
  • JavaScript end-to-end testing framework with browser-based runner and cloud service

    Free, then $67/mo13 researched notes
  • Open-source web automation framework for testing and scripting across browsers

    Free plan11 researched notes
  • The default Java unit testing framework, developed by an independent team with commercial support available via OpenElements

    Open source11 researched notes
  • Java testing framework created by Cedric Beust, still actively maintained but effectively a single-lead project

    Open source11 researched notes
  • Python testing framework maintained by an independent core team funded partly through Tidelift

    Open source11 researched notes
  • Open source end-to-end testing framework for React Native apps, built and maintained by Wix

    Open source13 researched notes
  • Browser automation framework and the W3C WebDriver standard

    Open source11 researched notes
  • Node.js library for controlling Chrome and Firefox

    Open source10 researched notes
  • Behaviour-driven development testing framework that returned to community ownership after nine years under SmartBear

    Open source11 researched notes
  • Warehouse-native experimentation and feature flagging, now sold as Datadog Experiments

    Pricing on request13 researched notes
  • Test intelligence tool, formerly Launchable, that selects tests relevant to each change

    Pricing on request12 researched notes
  • Cloud load and performance testing platform built around JMeter, with API monitoring

    Free, then $149/mo12 researched notes
  • Visual feedback and bug tracking for websites

    Free, then $50/mo9 researched notes
  • Open source Node.js browser and mobile automation framework, governed under the OpenJS Foundation with Sauce Labs as a premium sponsor

    Open source13 researched notes
  • Open source mobile automation framework hosted under the OpenJS Foundation with copyright assigned to the foundation

    Open source13 researched notes

Softwr does not host reviews and shows no star rating for Vitest, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on Vitest

Best Testing software alternatives

AI-assisted test automation for web, mobile and Salesforce apps

freemium

Enterprise performance and load testing platform from Tricentis

quote

SmartBear API testing platform for functional, security, performance and virtualised tests

quote

Enterprise web and mobile testing cloud from Perforce with real devices and AI test creation

quote

Cloud load and performance testing platform built around JMeter, with API monitoring

freemium

Automated UI testing tool for desktop, web and mobile apps from SmartBear

quote

JavaScript test framework for Node.js and the browser, an OpenJS Foundation project

open-source

Open-source load testing tool where scenarios are written in plain Python

open-source

Compare Vitest with alternatives