Vitest: testing DX reimagined
summary
Vitest is a Vite-based test runner that runs ESM/TypeScript/JSX without extra config, uses Vite’s module graph so tests rerun fast (example: a component test completes in ~132ms), and provides snapshots, chai-style assertions plus a Jest-compatible expect API, coverage via c8/Istanbul, and an experimental browser UI that lets you edit tests inline. It adds specific features like instant watch mode and test change detection and supports in-source testing and experimental benchmarking; most demos run successfully with minimal setup.
AI-written summary · about
chapters (7)
- 0:00Introduction to Vitest
- 0:36Key features of Vitest
- 2:46Vitest in action
- 5:34Migration and watch mode
- 9:21Node.js testing and context
- 14:28In-source testing
- 17:16Future roadmap








