vitest とは?
React Testing Library を使用した Vitest 単体テスト パターン。トリガー: React コンポーネント、フック、またはユーティリティの単体テストを作成するとき。 ソース: prowler-cloud/prowler。
React Testing Library を使用した Vitest 単体テスト パターン。トリガー: React コンポーネント、フック、またはユーティリティの単体テストを作成するとき。
コマンドラインで vitest AI スキルを開発環境にすばやくインストール
ソース: prowler-cloud/prowler。
For E2E tests: Use prowler-test-ui skill (Playwright). This skill covers unit/integration tests with Vitest + React Testing Library.
| 1 | getByRole | Buttons, inputs, headings | | 2 | getByLabelText | Form fields | | 3 | getByPlaceholderText | Inputs without label | | 4 | getByText | Static text | | 5 | getByTestId | Last resort only |
| vi.spyOn | Observe without replacing (PREFERRED) | | vi.mock | Replace entire module (use sparingly) |
React Testing Library を使用した Vitest 単体テスト パターン。トリガー: React コンポーネント、フック、またはユーティリティの単体テストを作成するとき。 ソース: prowler-cloud/prowler。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/prowler-cloud/prowler --skill vitestReact Testing Library を使用した Vitest 単体テスト パターン。トリガー: React コンポーネント、フック、またはユーティリティの単体テストを作成するとき。 ソース: prowler-cloud/prowler。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/prowler-cloud/prowler --skill vitest インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/prowler-cloud/prowler