🔖 Title
Add E2E test suite covering the complete BNPL loan lifecycle
📄 Description
The codebase has 15 unit test files but lacks end-to-end tests that validate the full BNPL flow from wallet registration through loan creation, repayment, and reputation update. E2E tests are critical to catch integration regressions that unit tests miss, especially around Stellar transaction building and Supabase state transitions.
✅ Tasks to complete
📚 Documentation/context for AI
(This link never should removed)
https://github.com/TrustUp-app/TrustUp-API/tree/main/docs
🗒️ Additional notes
- Use NestJS `@nestjs/testing` `createTestingModule` with SuperTest (Fastify adapter)
- Mock Stellar SDK calls at the service boundary, not at the HTTP level
- E2E tests should run in isolation — each test must clean up its own DB records
- See `test/helpers/` for existing test utilities to reuse
🔖 Title
Add E2E test suite covering the complete BNPL loan lifecycle
📄 Description
The codebase has 15 unit test files but lacks end-to-end tests that validate the full BNPL flow from wallet registration through loan creation, repayment, and reputation update. E2E tests are critical to catch integration regressions that unit tests miss, especially around Stellar transaction building and Supabase state transitions.
✅ Tasks to complete
📚 Documentation/context for AI
(This link never should removed)
https://github.com/TrustUp-app/TrustUp-API/tree/main/docs
🗒️ Additional notes