vitest

Installation
Summary

Modern TypeScript testing with Vite-native speed, ESM-first design, and instant HMR feedback.

  • Vite-powered test execution delivers 10-100x faster performance than Jest through HMR-based test running and native ES module support
  • Built-in TypeScript support requires zero configuration; includes Jest-compatible API for straightforward migration from existing test suites
  • Supports React and Vue component testing via Testing Library and Vue Test Utils, with jsdom/happy-dom environment options
  • Comprehensive mocking API (vi.mock, vi.spyOn, vi.fn) for modules, methods, and timers; includes snapshot testing and v8-based coverage reporting
  • UI mode provides visual test debugging; concurrent test execution and custom matchers enable advanced testing patterns
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

Installation:

npm install -D vitest
Related skills
Installs
570
GitHub Stars
43
First Seen
Jan 23, 2026