Vitest is a next-generation testing framework built on top of Vite. It provides a fast, modern testing experience with features like instant hot module replacement, native ESM support, and out-of-the-box TypeScript support.
- Lightning Fast: Powered by Vite's transformation pipeline
- Jest Compatible: Drop-in replacement for most Jest APIs
- ESM First: Native ES modules support
- TypeScript: Zero-config TypeScript support
- Watch Mode: Instant HMR for tests
- UI Mode: Built-in test UI for debugging
- Coverage: Integrated code coverage with c8 or Istanbul
- Component Testing: First-class support for testing React components
- Unit testing React components
- Integration testing
- Vite-based projects
- Projects migrating from Jest
- Modern TypeScript applications
Free and open source (MIT License)