Create a test file for a component or function
/plugin marketplace add dbalanco/claude-code/plugin install dbalanco-testing-quality-plugins-testing-quality@dbalanco/claude-code# Create Test Generate a test file with Vitest and Testing Library for components or utilities. ## Instructions 1. Ask what to test: - React component - Utility function - API route - Server Action 2. Create test file following naming convention: - `*.test.ts` or `*.test.tsx` - Co-located with source file or in `__tests__` directory 3. Generate test with: - Proper imports (vitest, testing-library) - describe block for test suite - Individual test cases - Setup and teardown if needed - Mock implementations - Assertions 4. For components, test: - Rend...