
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-comptible and works for backend code too.
Learn more Reuse Vite's config and plugins - consistent across your app and tests. But it's not required to use Vitest!
Expect, snapshot, coverage, and more - migrating from Jest is straightforward.

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

Out-of-box ESM, TypeScript and JSX support powered by Oxc.
Vitest is free and open source, made possible by wonderful sponsors.
Become a Sponsor