Description
Extend Pact coverage to /distributions and /payouts endpoints. Publish provider states and enforce contract mismatches as build failures.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Relevant code:
src/routes/distributions.ts, src/routes/payouts.ts
- Broker credentials sourced securely
Suggested execution
- Fork the repo and create a branch
git checkout -b tests/pact-distributions-payouts
- Implement changes
- Add pact provider verification for both routes
- Publish states
- Document consumer contract sources
- Validate security and correctness assumptions
Test and commit
- Run tests
- Cover edge cases
- Field removal breaks build until consumer accepts
- Include test output and notes
Example commit message
tests: Pact verification for distributions and payouts
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Extend Pact coverage to
/distributionsand/payoutsendpoints. Publish provider states and enforce contract mismatches as build failures.Requirements and context
src/routes/distributions.ts,src/routes/payouts.tsSuggested execution
git checkout -b tests/pact-distributions-payoutsTest and commit
npm testExample commit message
tests: Pact verification for distributions and payoutsGuidelines