Testing Test Writing
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle testing test writing.
When to use this skill
- When writing Vitest unit tests for utilities, components, or business logic
- When creating Playwright E2E tests for critical user workflows
- When testing API routes and server-side logic
- When implementing mocks for external dependencies (APIs, databases, file systems)
- When testing Content Collection queries and data transformations
- When writing integration tests for data fetching logic
- When setting up test configurations (vitest.config.ts, test-setup.ts)
- When using React Testing Library for component testing
- When focusing tests on behavior rather than implementation details
- When writing clear, descriptive test names that explain expected outcomes
- When prioritizing tests for core user flows over edge cases during development
Instructions
For details, refer to the information provided in this file: testing test writing