# Olore Vitest 5.1.0

> Local Vitest documentation reference (5.1.0). Vitest testing framework documentation. Use for unit testing, mocking, coverage, snapshots, and Vite-native test configuration.

- Skill: `olorehq/olore-vitest-5-1-0` (Agent Skill, multi-file: 221 files)
- Install (CLI): `npx get-skill add olorehq/olore-vitest-5-1-0`
- Raw SKILL.md: https://api.skillmd.com/api/skills/olorehq/olore-vitest-5-1-0/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: olorehq (https://skillmd.com/u/olorehq)
- Updated: 2026-11-12
- Page: https://skillmd.com/skills/olorehq/olore-vitest-5-1-0

---


# 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

1. **First**, read `TOC.md` for complete file listing organized by directory
2. Identify relevant section based on user's question
3. Read specific files for details

**TOC.md contains all files organized by directory - always check it first.**

