Skip to content
cccskills
FreePublished on GitHub

vitest

Vitest 5 (Vite ネイティブテストフレームワーク) リファレンス。

test, describe, it, expect, vi.fn, vi.mock, vi.spyOn, vi.when、 beforeEach / afterEach、test.extend fixtures、test tags / annotations、 coverage (v8 / istanbul)、snapshot、vitest.config.ts、projects (old workspace)、 Vitest Browser Mode (vitest-browser-react, locators, expect.element)、UI モード、bench fixture。

The English summary is being prepared. Showing the original description.

See how to install

Files included (94)

  • SKILL.md6.8 KB
  • references/advanced/benchmark-provider.md3.0 KB
  • references/advanced/custom-pool.md3.7 KB
  • references/advanced/extending-reporters.md2.7 KB
  • references/advanced/getting-started.md4.3 KB
  • references/advanced/README.md1.0 KB
  • references/advanced/running-tests.md3.2 KB
  • references/api/expect.md12.2 KB
  • references/api/hooks.md4.6 KB
  • references/api/README.md631 B
  • references/api/test-api.md7.8 KB
  • references/api/vi.md12.2 KB
  • references/browser-mode/aria-snapshots.md2.8 KB
  • references/browser-mode/assertions.md5.4 KB
  • references/browser-mode/browser-config.md10.0 KB
  • references/browser-mode/commands.md3.6 KB
  • references/browser-mode/component-testing.md3.0 KB
  • references/browser-mode/context-api.md4.7 KB
  • references/browser-mode/interactivity-api.md4.4 KB
  • references/browser-mode/locators.md5.9 KB
  • references/browser-mode/multiple-setups.md1.5 KB
  • references/browser-mode/overview.md3.6 KB
  • references/browser-mode/playwright-traces.md2.1 KB
  • references/browser-mode/README.md3.0 KB
  • references/browser-mode/render-function.md4.8 KB
  • references/browser-mode/trace-view.md3.0 KB
  • references/browser-mode/visual-regression-testing.md4.4 KB
  • references/browser-mode/why.md1.0 KB
  • references/guide/benchmarking.md3.7 KB
  • references/guide/cli.md6.0 KB
  • references/guide/common-errors.md3.4 KB
  • references/guide/config.md8.1 KB
  • references/guide/coverage.md3.1 KB
  • references/guide/debugging.md2.4 KB
  • references/guide/environment.md4.0 KB
  • references/guide/extending-matchers.md2.9 KB
  • references/guide/filtering.md1.9 KB
  • references/guide/improving-performance.md4.0 KB
  • references/guide/in-source.md1.5 KB
  • references/guide/lifecycle.md3.8 KB
  • references/guide/migration-jest.md2.7 KB
  • references/guide/migration-mocha.md2.2 KB
  • references/guide/migration-v5.md29.8 KB
  • references/guide/open-telemetry.md3.3 KB
  • references/guide/parallelism.md1.8 KB
  • references/guide/profiling-test-performance.md2.7 KB
  • references/guide/README.md4.1 KB
  • references/guide/snapshot.md2.2 KB
  • references/guide/test-annotations.md1.6 KB
  • references/guide/test-context.md4.2 KB
  • references/guide/test-tags.md3.0 KB
  • references/guide/testing-types.md1.7 KB
  • references/guide/ui.md3.0 KB
  • references/guide/workspace.md3.3 KB
  • references/patterns/async.md4.1 KB
  • references/patterns/mocking-classes.md6.2 KB
  • references/patterns/mocking-dates.md1.6 KB
  • references/patterns/mocking-file-system.md2.3 KB
  • references/patterns/mocking-globals.md900 B
  • references/patterns/mocking-requests.md2.6 KB
  • references/patterns/mocking.md4.9 KB
  • references/patterns/README.md1.0 KB
  • references/recipes/browser-locators.md3.1 KB
  • references/recipes/cancellable.md1.9 KB
  • references/recipes/conditional-mocking.md6.1 KB
  • references/recipes/custom-assertions.md1.5 KB
  • references/recipes/db-transaction.md3.0 KB
  • references/recipes/disable-isolation.md2.2 KB
  • references/recipes/explicit-resources.md2.7 KB
  • references/recipes/parallel-sequential.md2.6 KB
  • references/recipes/README.md2.9 KB
  • references/recipes/schema-matching.md1.9 KB
  • references/recipes/type-narrowing.md1.5 KB
  • references/recipes/wait-for.md3.1 KB
  • references/recipes/watch-templates.md1.8 KB
  • samples/basic-test.md715 B
  • samples/benchmark-fixture.md1.1 KB
  • samples/browser-component-test.md1.1 KB
  • samples/conditional-mocking-vi-when.md1.3 KB
  • samples/coverage-setup.md1.6 KB
  • samples/describe-and-hooks.md1.1 KB
  • samples/mocking-modules.md2.1 KB
  • samples/parameterized-tests.md1.2 KB
  • samples/README.md2.0 KB
  • samples/snapshot-testing.md1.4 KB
  • samples/spy-on-methods.md1.4 KB
  • samples/test-environment.md1.6 KB
  • samples/type-testing.md1.5 KB
  • samples/workspace-setup.md2.9 KB
  • scripts/cli.md5.0 KB
  • scripts/coverage.md1.4 KB
  • scripts/install.md2.6 KB
  • scripts/README.md449 B
  • scripts/setup.md807 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Vitest API リファレンス

Vitest — Vite ネイティブのテストフレームワーク。 テスト作成・レビュー・リファクタリング時に参照する。

Target: Vitest v5.0.5 (vitest-dev/vitest tag v5.0.5; Node ^22.12.0 / ^24 / >=26, Vite ^6.4 / ^7 / ^8 as a peer dependency)

ディレクトリ構成

skills/vitest/
  SKILL.md
  references/
    api/
      README.md
      test-api.md
      expect.md
      vi.md
      hooks.md
    guide/
      README.md
      benchmarking.md
      cli.md
      common-errors.md
      config.md
      coverage.md
      debugging.md
      environment.md
      extending-matchers.md
      filtering.md
      improving-performance.md
      in-source.md
      lifecycle.md
      migration-jest.md
      migration-mocha.md
      migration-v5.md
      open-telemetry.md
      parallelism.md
      profiling-test-performance.md
      snapshot.md
      test-annotations.md
      test-context.md
      test-tags.md
      testing-types.md
      ui.md
      workspace.md
    patterns/
      README.md
      async.md
      mocking.md
      mocking-classes.md
      mocking-dates.md
      mocking-file-system.md
      mocking-globals.md
      mocking-requests.md
    browser-mode/
      README.md
      overview.md
      why.md
      multiple-setups.md
      browser-config.md
      locators.md
      interactivity-api.md
      assertions.md
      commands.md
      context-api.md
      render-function.md
      component-testing.md
      visual-regression-testing.md
      aria-snapshots.md
      trace-view.md
      playwright-traces.md
    recipes/
      README.md
      browser-locators.md
      cancellable.md
      conditional-mocking.md
      custom-assertions.md
      db-transaction.md
      disable-isolation.md
      explicit-resources.md
      parallel-sequential.md
      schema-matching.md
      type-narrowing.md
      wait-for.md
      watch-templates.md
    advanced/
      README.md
      getting-started.md
      running-tests.md
      extending-reporters.md
      custom-pool.md
      benchmark-provider.md
  samples/
    README.md
    basic-test.md
    benchmark-fixture.md
    browser-component-test.md
    conditional-mocking-vi-when.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 で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
describe, it/test, hooks (aroundEach / onTestFinished), modifiers, each/for を使いたいapireferences/api/README.md
expect のマッチャー(等値・型・数値・コレクション・スナップショット・非同期)を調べたいapireferences/api/README.md
vi.fn, vi.mock, vi.spyOn, タイマー, スタブを使いたいapireferences/api/README.md
vitest.config.ts の設定オプションを調べたいguidereferences/guide/README.md
CLI コマンド・フラグを調べたい(リファレンス)guidereferences/guide/README.md
カバレッジ (v8 / istanbul) を設定したいguidereferences/guide/README.md
テスト環境 (jsdom, happy-dom, edge-runtime) を切り替えたいguidereferences/guide/README.md
スナップショットテスト・型テスト・projects (旧 workspace) を設定したいguidereferences/guide/README.md
Test Context / fixtures・tags・annotations・filtering・lifecycle を知りたいguidereferences/guide/README.md
カスタムマッチャー・reporters・UI・debugging・in-source testing を使いたいguidereferences/guide/README.md
パフォーマンス改善・プロファイリング・並列実行・OpenTelemetry・benchmarking を調べたいguidereferences/guide/README.md
よくあるエラーの原因と対処を知りたいguidereferences/guide/README.md
v4 → v5 / Jest / Mocha からの移行手順を知りたいguidereferences/guide/README.md
モックパターン (vi.fn, vi.mock, vi.spyOn, 部分モック) を知りたいpatternsreferences/patterns/README.md
日付・グローバル・ファイルシステム・HTTP リクエスト・クラスを詳細にモックしたいpatternsreferences/patterns/README.md
非同期テスト・フェイクタイマーのパターンを知りたいpatternsreferences/patterns/README.md
Browser Mode (locators, interactivity, expect.element, component testing) を使いたいbrowser-modereferences/browser-mode/README.md
Browser Mode の visual regression・trace view・browser 設定を調べたいbrowser-modereferences/browser-mode/README.md
実践レシピ (DB transaction, vi.when, using, wait-for, isolation) を知りたいrecipesreferences/recipes/README.md
プログラマティック API・カスタム reporter・カスタム pool・benchmark provider を実装したいadvancedreferences/advanced/README.md
典型的な使い方・実例を参照したいsamplessamples/README.md
インストール・CLI コマンド・セットアップ手順を知りたいscriptsscripts/README.md

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

AMD ROCm / HIP GPU コンピューティングリファレンス。 hipMalloc, hipLaunchKernelGGL, HIP Graph, hipGreenCtx, HIPRTC, hipify, rocBLAS, MIOpen, RCCL, hipThreads, libhipcxx, rocprofv3, amd-smi, rocminfo, TheRock / Core SDK 10, CDNA1-4 / RDNA1-4, MI300 / MI350 / MI350P, gfx942, Matrix Core, wave32/64。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android アプリ開発 (Kotlin) の推奨アーキテクチャリファレンス。 Jetpack, androidx, UI layer, Domain layer, Data layer, state holder, UDF, SSOT, オフラインファースト, モジュール化, ViewModel, viewModelScope, SavedStateHandle, Lifecycle, repeatOnLifecycle, collectAsStateWithLifecycle, LiveData, Hilt による DI, Paging 3 によるページング処理。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android アプリ開発 (Kotlin) のバックグラウンド・非同期処理リファレンス。 Jetpack androidx WorkManager: Worker, CoroutineWorker, WorkRequest, Constraints, WorkInfo, WorkContinuation, expedited work, テスト。 Service: フォアグラウンドサービス, バウンドサービス, AIDL, Messenger。 AlarmManager, PendingIntent, BroadcastReceiver, JobScheduler, Doze。 Kotlin コルーチン, Flow, StateFlow, SharedFlow, Channel。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android アプリ開発 (Kotlin) の Gradle ビルドシステムリファレンス。 Android Gradle Plugin (AGP), Kotlin DSL (build.gradle.kts), version catalog, KSP, R8/ProGuard, App Bundle, baseline profile。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android Jetpack Compose (Kotlin) の androidx Material3 コンポーネントリファレンス。 Button, IconButton, FloatingActionButton, Checkbox, Switch, Slider, TextField, SearchBar, DropdownMenu, Chip, DatePicker, TimePicker, Card, Scaffold, Dialog, BottomSheet, TopAppBar, NavigationBar, NavigationRail, Tab, Snackbar, ProgressIndicator, Badge, Icon, MaterialTheme, ColorScheme, Typography, Shapes。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android Jetpack Compose (Kotlin) のアニメーション・描画リファレンス。 androidx.compose.animation / graphics API。 AnimatedVisibility, AnimatedContent, animate*AsState, Animatable, AnimationSpec, Canvas, DrawScope, Brush, Path, Color, Image。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

See all skills by Fandhe-AI

Report a problem with this skill