name: olore-vitest-latest description: Local Vitest documentation reference (latest). Vitest testing framework documentation. Use for unit testing, mocking, coverage, snapshots, and Vite-native test configuration.
vitest Documentation
Vitest testing framework documentation. Use for unit testing, mocking, coverage, snapshots, and Vite-native test configuration.
Quick Reference
| Task | Entry Point |
|---|---|
| Getting started | contents/guide/index.md |
| Writing tests | contents/guide/learn/writing-tests.md |
| CLI usage | contents/guide/cli.md |
| Configuration | contents/config/index.md |
| Mocking | contents/guide/mocking.md |
| Coverage | contents/guide/coverage.md |
| Snapshots | contents/guide/snapshot.md |
| API reference (expect) | contents/api/expect.md |
| Browser mode | contents/guide/browser/index.md |
| Troubleshooting | contents/guide/common-errors.md |
When to use
Use this skill when the user asks about:
- Writing and running unit or integration tests with Vitest
- Mocking modules, functions, classes, timers, or HTTP requests
- Code coverage configuration and reporting
- Snapshot testing
- Configuration options (vitest.config.ts / vite.config.ts)
- Browser mode and component testing
- Type-level testing with expectTypeOf
- CLI flags, watch mode, test filtering
- Migrating from Jest or upgrading Vitest versions
- Advanced APIs (custom reporters, runners, programmatic API)
How to find information
- First, read
TOC.mdfor complete file listing organized by directory - Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.