Description
Provider adapters are hard to test end-to-end without live vendor keys. Add a fixture-recording harness that captures redacted vendor traces once and replays them in CI without any secrets.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Relevant code:
src/aml/amlService.test.ts, KYC adapter tests
- Redaction unit-tested to prove no PII leaks
Suggested execution
- Fork the repo and create a branch
git checkout -b tests/kyc-aml-fixture-harness
- Implement changes
- Add recorder helper
- Add redaction rules
- Land initial fixtures per provider
- Validate security and correctness assumptions
Test and commit
- Run tests
- Cover edge cases
- Redaction covers unexpected fields
- Include test output and notes
Example commit message
tests: KYC/AML fixture-recording test harness
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Provider adapters are hard to test end-to-end without live vendor keys. Add a fixture-recording harness that captures redacted vendor traces once and replays them in CI without any secrets.
Requirements and context
src/aml/amlService.test.ts, KYC adapter testsSuggested execution
git checkout -b tests/kyc-aml-fixture-harnessTest and commit
npm testExample commit message
tests: KYC/AML fixture-recording test harnessGuidelines