vitest

Installation
Summary

Vite-native unit and integration testing framework with Jest-compatible API and parallel execution.

  • Supports testing Vue, React, and Svelte components with configurable environments (Node, jsdom, or browser mode)
  • Provides Jest-compatible API including describe/it blocks, hooks, fixtures, and globals configuration
  • Includes comprehensive mocking capabilities: vi.fn for function mocks, vi.mock for module mocking, and timer/date utilities
  • Offers code coverage thresholds, snapshot testing, and type testing support with TypeScript
  • Runs tests concurrently by default with workspace project support and CLI filtering options
SKILL.md

Vitest

Vite-native testing framework with Jest-compatible API.

When to Use

  • Writing unit/integration tests for Vite projects
  • Testing Vue/React/Svelte components
  • Mocking modules, timers, or dates
  • Running concurrent/parallel tests
  • Type testing with TypeScript

Quick Start

npm i -D vitest
Related skills

More from onmax/nuxt-skills

Installs
1.8K
GitHub Stars
658
First Seen
Jan 28, 2026