Frontend Test Generator
Generate React/Vue component tests with React Testing Library including user interactions.
When to Invoke
Auto-invoke when user mentions:
- "Test this component"
- "Write component test"
- "Test component"
- "Add component test"
- "Component tests for [name]"
What This Does
- Generates test file with RTL utilities
- Tests component rendering
- Tests user interactions (click, type, etc.)
- Tests accessibility
- Generates snapshot tests
Success Criteria
- [ ] Test file generated with RTL imports
- [ ] Tests render component correctly
- [ ] User interactions are tested
- [ ] Accessibility attributes validated
- [ ] Tests follow React Testing Library best practices
Auto-invoke when writing frontend component tests ⚛️