# Olore Vitest 4.1.8

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

- Skill: `olorehq/olore-vitest-4-1-8` (Agent Skill, multi-file: 192 files)
- Install (CLI): `npx get-skill add olorehq/olore-vitest-4-1-8`
- Raw SKILL.md: https://api.skillmd.com/api/skills/olorehq/olore-vitest-4-1-8/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-4-1-8

---


# 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` |
| API reference | `contents/api/` |
| Configuration | `contents/config/index.md` |
| Mocking | `contents/guide/mocking.md` |
| CLI reference | `contents/guide/cli.md` |
| Coverage | `contents/guide/coverage.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, dates, globals, or network requests
- Configuring Vitest (`vitest.config.ts`, test options, environments)
- Code coverage setup and configuration
- Snapshot testing
- Browser mode and component testing
- TypeScript type-level testing
- Migrating from Jest or other test runners to Vitest
- Vitest CLI flags and 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.**

