AgentSkillsCN

olore-vitest-latest

本地 vitest 文档参考(最新版)。Vitest 测试框架文档。适用于单元测试、模拟测试、覆盖率分析、快照记录,以及原生支持 Vite 的测试配置。

SKILL.md
--- frontmatter
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

TaskEntry Point
Getting startedcontents/guide/index.md
Writing testscontents/guide/features.md
Test APIcontents/api/test.md
Expect/assertionscontents/api/expect.md
Mockingcontents/guide/mocking.md
Coveragecontents/guide/coverage.md
Configurationcontents/config/index.md
Browser modecontents/guide/browser/index.md

When to use

Use this skill when the user asks about:

  • Writing unit tests with Vitest
  • Test assertions and expectations
  • Mocking functions, modules, dates, timers, requests
  • Code coverage configuration
  • Snapshot testing
  • Test filtering and execution
  • Browser mode testing
  • IDE integration and debugging
  • Performance optimization
  • Migration from Jest or other test frameworks

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:
    • API usage: Check api/ directory
    • How-to guides: Check guide/ directory
    • Configuration: Check config/ directory
  3. Read specific files for details

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