What is vitest?
Vitest unit testing patterns with React Testing Library. Trigger: When writing unit tests for React components, hooks, or utilities. Source: prowler-cloud/prowler.
Vitest unit testing patterns with React Testing Library. Trigger: When writing unit tests for React components, hooks, or utilities.
Quickly install vitest AI skill to your development environment via command line
Source: 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) |
Vitest unit testing patterns with React Testing Library. Trigger: When writing unit tests for React components, hooks, or utilities. Source: prowler-cloud/prowler.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/prowler-cloud/prowler --skill vitestVitest unit testing patterns with React Testing Library. Trigger: When writing unit tests for React components, hooks, or utilities. Source: prowler-cloud/prowler.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/prowler-cloud/prowler --skill vitest Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/prowler-cloud/prowler