Trigger
- When adding or modifying tests for API client methods
- When validating API response contracts or error handling paths
Execution Checklist
- Read
docs/testing/api-testing.md - Enumerate normal and error cases in a table-driven format
- Use
MockHandlerto stub external API responses — no real HTTP calls in unit tests - Verify
Result<T, AppError>return values (both.okand.errpaths) - Test retry behavior for retryable errors (5xx, network failures)
Reference Documents
docs/testing/api-testing.mddocs/web-frontend/twada-tdd.mddocs/backend/server-architecture.md- MockHandler and VSPOApi client patterns