Complexity Score: 150
Description
Create comprehensive tests that cover the entire flow from claim request to onchain disbursement.
Requirements
- Use Supertest for API endpoint testing.
- Mock the
Stellar SDK and OpenAI API for deterministic tests.
- Test the full lifecycle:
Create Claim -> Enqueue Verification -> AI Success -> Onchain Package Create -> Disburse.
- Verify database state and audit logs at each step.
Tech Stack
- NestJS, Jest, Supertest, Mocking libraries.
Complexity Score: 150
Description
Create comprehensive tests that cover the entire flow from claim request to onchain disbursement.
Requirements
Stellar SDKandOpenAI APIfor deterministic tests.Create Claim -> Enqueue Verification -> AI Success -> Onchain Package Create -> Disburse.Tech Stack