
The Vite Native Test Runner
Vitest was created to make testing just work for Vite apps. By building on top of Vite, Vitest natively understands your Vite config and is able to reuse the same resolve and transform pipelines.
You can also use Vitest even if you are not using Vite. It is Jest-compatible and works for backend code too.
Learn moreFast. Lightweight. Integrated.
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 Oxc.
Free & open source
Vitest is free and open source, made possible by wonderful sponsors.
Become a Sponsor


