What problem does it solve?
It helps users quickly find correct, practical guidance for writing and configuring tests in Vitest, including mocking, coverage, browser/component testing, and Jest migration topics.
Core Features & Use Cases
- Test API fundamentals: Coverage for core functions like
describe, test, expect, vi, and lifecycle hooks (before/after).
- Mocking & determinism: Guidance for mocking modules/functions/classes, timers/dates, filesystem, globals, and network requests.
- Advanced testing modes: Snapshot testing, coverage providers (v8/istanbul), browser testing (Playwright/WebDriverIO), and React/Vue/Svelte component testing.
- Configuration & tooling: Detailed reference for CLI commands, environment selection (node/jsdom/happy-dom/edge-runtime), projects/workspaces, parallelism, reporters, debugging, IDE integration, tags/filtering, and performance/migration tips.
Quick Start
Use the vitest-docs skill when you need to understand how to configure your Vitest test runner for mocking, coverage, or browser/component testing and how to apply the right CLI/config options.