vitest
Installation
SKILL.md
Vitest - Modern TypeScript Testing
Overview
Vitest is a next-generation test framework powered by Vite, designed for modern TypeScript/JavaScript projects. It provides blazing-fast test execution through HMR-based test running, native ESM support, and first-class TypeScript integration.
Key Features:
- β‘ Vite-native: Instant HMR-based test execution (10-100x faster than Jest)
- π― TypeScript-first: Built-in TypeScript support, no configuration needed
- π ESM-native: Native ES modules, async/await, top-level await
- π§ͺ Jest-compatible: Compatible API for easy migration
- πΈ Snapshot testing: Built-in snapshot support
- π¨ Component testing: React Testing Library, Vue Test Utils integration
- π Coverage: Built-in v8/c8 coverage (faster than Istanbul)
- π UI mode: Beautiful web UI for test debugging