New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Comprehensive Vitest reference covering test APIs, mocking, coverage, and workspace projects for Vite-based codebases.

skills.sh installs
3.3K
GitHub stars
730
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers configuration, CLI, describe/it/expect APIs, hooks, snapshots, and benchmarking across 19 reference topics
  • Includes mocking via vi utilities, coverage through V8 or Istanbul providers, and test filtering by name, file pattern, and tags
  • Documents environment setup for node, jsdom, and happy-dom, plus type-level testing with expectTypeOf and assertType
  • Designed for Vite projects that want Jest-compatible tests with native ESM, TypeScript, and JSX support

Install

$ npx -y skills add onmax/nuxt-skills --skill vitest -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vitest is a next-generation testing framework powered by Vite. It provides a Jest-compatible API with native ESM, TypeScript, and JSX support out of the box. Vitest shares the same config, transformers, resolvers, and plugins with your Vite app.

Key Features:

  • Vite-native: Uses Vite's transformation pipeline for fast HMR-like test updates
  • Jest-compatible: Drop-in replacement for most Jest test suites
  • Smart watch mode: Only reruns affected tests based on module graph
  • Native ESM, TypeScript, JSX support without configuration
  • Multi-threaded workers for parallel test execution
  • Built-in coverage via V8 or Istanbul
  • Snapshot testing, mocking, and spy utilities

The skill is based on Vitest 5.1.0-beta.1, generated at 2026-10-23.

Core

Details

Repository
github.com/onmax/nuxt-skills
Categories
Testing & QA, Frontend & UI Code
First seen
May 16, 2026

More from onmax/nuxt-skills

All 12

Similar to Vitest

More Testing & QA