Testing Examples
Examples showing how to create comprehensive test suites using the testing skill.
How to Use
Each example includes:
- 📝 Prompt: The exact prompt to use
- 🧪 Test Strategy: What should be tested
- ✅ Example Tests: Complete test suite
Examples
- React Component Tests - Test React components with RTL
- API Endpoint Tests - Test Python FastAPI endpoints
- Unit Tests for Service - Test Java service layer
Quick Start
Write comprehensive tests for [component/function/API]:
[paste your code here]
Include:
- Unit tests
- Integration tests
- Edge cases
- Error scenarios