Category: testing
Problem
src/stellar/stellar-monitor.service.ts has no matching .spec.ts anywhere in the repo, despite being the service that scans Stellar Horizon transactions, confirms payments, expires stale payments, and triggers settlement.
Impact
With zero unit tests, the two runtime bugs filed separately (unreachable pollEscrowEvents call, call to nonexistent pollTransferEvents) went completely undetected — this is the single highest-value module in the codebase to leave untested.
Suggested fix
Add src/stellar/stellar-monitor.service.spec.ts covering scanPendingPayments, confirmPayment, and expireOldPayments with mocked Stellar/Soroban dependencies.
Category: testing
Problem
src/stellar/stellar-monitor.service.ts has no matching
.spec.tsanywhere in the repo, despite being the service that scans Stellar Horizon transactions, confirms payments, expires stale payments, and triggers settlement.Impact
With zero unit tests, the two runtime bugs filed separately (unreachable pollEscrowEvents call, call to nonexistent pollTransferEvents) went completely undetected — this is the single highest-value module in the codebase to leave untested.
Suggested fix
Add src/stellar/stellar-monitor.service.spec.ts covering
scanPendingPayments,confirmPayment, andexpireOldPaymentswith mocked Stellar/Soroban dependencies.