Skip to content
Vitest 2
Main Navigation GuideAPIConfigBrowser ModeAdvanced
2.1.9
1.6.1
0.34.6

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

Appearance

Sidebar Navigation

Why Vitest

Getting Started

Features

Workspace

CLI

Test Filtering

Reporters

Coverage

Snapshot

Mocking

Testing Types

Vitest UI

In-source Testing

Test Context

Environment

Extending Matchers

IDE Integration

Debugging

Comparisons

Migration Guide

Common Errors

Profiling Test Performance

Improving Performance

On this page

Vitest v2 Documentation ​

Next generation testing framework powered by Vite

Vite Powered ​

Reuse Vite's config and plugins - consistent across your app and tests. But it's not required to use Vitest!

Jest Compatible ​

Expect, snapshot, coverage, and more - migrating from Jest is straightforward.

Smart & instant watch mode ​

Only rerun the related changes, just like HMR for tests!

ESM, TypeScript, JSX ​

Out-of-box ESM, TypeScript and JSX support powered by esbuild.

Pager
Next pageWhy Vitest

Released under the MIT License.

Copyright (c) 2021-Present Vitest Team

https://v2.vitest.dev/

Released under the MIT License.

Copyright (c) 2021-Present Vitest Team