Vitest
Fast Vite-native test runner with a Jest-compatible API, first-class ESM and TypeScript support.
Vitest reuses Vite's configuration and transform pipeline, so tests run with the same plugins and aliases as the app, with fast watch mode. Its API is largely compatible with Jest, easing migration. It also offers browser mode, in-source testing and built-in coverage.
- Type
- Testing
- Category
- Testing
- Maintainer
- Vitest team (VoidZero)
- First released
- 2021
- License
- Open source (MIT)
- Pricing
- Open source
- Level
- Beginner
- Technologies
- javascript, typescript, testing, vite
- GitHub stars
- 17,668
- Weekly downloads
- 199,262,790 (npm)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What Vitest is used for
- Testing Vite-based apps
- Fast TypeScript unit tests
- Component tests in a real browser
Strengths
- Very fast watch mode
- Native ESM/TS
- Jest-compatible API
Limitations
- Best experience assumes Vite tooling
- Younger ecosystem than Jest
Vitest alternatives
How it relates to other tools
- Vitest works with Vite
- Vitest works with React
- Vitest works with Testing Library
- Vitest works with Playwright
- Vitest alternative to Jest