# Olore Vitest Latest

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

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

---


# 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` |
| Test API (test, describe, hooks) | `contents/api/test.md` |
| Assertions | `contents/api/expect.md` |
| Mocking / vi utility | `contents/api/vi.md` |
| Configuration | `contents/config/index.md` |
| Browser Mode | `contents/guide/browser/index.md` |
| Coverage | `contents/guide/coverage.md` |
| Troubleshooting | `contents/guide/common-errors.md` |

## When to use

Use this skill when the user asks about:
- Writing unit tests with Vitest (test, describe, expect, hooks)
- Mocking modules, timers, and functions with `vi`
- Vitest configuration options, projects, and CLI
- Coverage, snapshots, Browser Mode, and migrating from Jest

## 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.**

