How to use
- Copy the installation command and review the source package before installing it in your own agent environment.
- Check the source document for required tools, credentials and supported hosts.
- Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill vitestBefore you start
- Installation does not include a model subscription, API allowance or permission to access your files.
- Repository stars and installation counts describe activity, not an independent quality or security test.
Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.
Vitest API リファレンス
Vitest — Vite ネイティブのテストフレームワーク。 テスト作成・レビュー・リファクタリング時に参照する。
ディレクトリ構成
skills/vitest/
SKILL.md
references/
api/
README.md
test-api.md
expect.md
vi.md
guide/
README.md
cli.md
config.md
coverage.md
environment.md
snapshot.md
testing-types.md
workspace.md
patterns/
README.md
mocking.md
async.md
samples/
README.md
basic-test.md
coverage-setup.md
describe-and-hooks.md
mocking-modules.md
parameterized-tests.md
snapshot-testing.md
spy-on-methods.md
test-environment.md
type-testing.md
workspace-setup.md
scripts/
README.md
cli.md
coverage.md
install.md
setup.md探索手順
タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:
- 下記マッピング表でタスクに対応するカテゴリを探す
- そのカテゴリの
references/{category}/README.mdを参照して目的のページを特定する - 該当ページの
.mdを Read して詳細を確認する
タスク → カテゴリ マッピング
| タスク | カテゴリ | 参照 README |
|---|---|---|
| describe, it/test, hooks, modifiers, each/for を使いたい | api | references/api/README.md |
| expect のマッチャー(等値・型・数値・コレクション・スナップショット・非同期)を調べたい | api | references/api/README.md |
| vi.fn, vi.mock, vi.spyOn, タイマー, スタブを使いたい | api | references/api/README.md |
| vitest.config.ts の設定オプションを調べたい | guide | references/guide/README.md |
| CLI コマンド・フラグを調べたい(リファレンス) | guide | references/guide/README.md |
| カバレッジ (v8 / istanbul) を設定したい | guide | references/guide/README.md |
| テスト環境 (jsdom, happy-dom, edge-runtime) を切り替えたい | guide | references/guide/README.md |
| スナップショットテスト・型テスト・ワークスペースを設定したい | guide | references/guide/README.md |
| モックパターン (vi.fn, vi.mock, vi.spyOn, 部分モック) を知りたい | patterns | references/patterns/README.md |
| 非同期テスト・フェイクタイマーのパターンを知りたい | patterns | references/patterns/README.md |
| 典型的な使い方・実例を参照したい | samples | samples/README.md |
| インストール・CLI コマンド・セットアップ手順を知りたい | scripts | scripts/README.md |


