| name | openwebf-app-testing-vitest |
| description | Set up and improve WebF app tests with Vitest and React Testing Library. Use when the user mentions Vitest, React Testing Library, unit tests, component tests, “testing trophy”, or asks to add/fix tests in a Vite/React/TS WebF app. |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__project_detect, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__templates_get, mcp__openwebf__templates_render |
OpenWebF App: Testing (Vitest + React Testing Library)
Instructions
- Identify the stack (React/Vue/etc.) and current test tooling (if any).
- Use MCP docs for the recommended testing approach and best practices.
- Prefer “testing trophy” prioritization:
- unit tests for business logic
- component tests for UI behavior
- minimal integration/E2E only where needed
- Offer templates when appropriate:
app/vitest-configapp/react-testing-library-example
More: