- Notifications
You must be signed in to change notification settings - Fork 234
test: add unit tests for payment processors #487
Copy link
Copy link
Open
Baqirrizvidev/nostream
#1Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtestUnit or integration test improvementsUnit or integration test improvements
Description
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtestUnit or integration test improvementsUnit or integration test improvements
Summary
The following files have near-zero unit test coverage (~16% statements). Each payment processor should be tested in isolation using stubs/mocks for HTTP calls.
Files to cover
src/payments-processors/lnbits-payment-processor.ts(12%)src/payments-processors/lnurl-payments-processor.ts(23%)src/payments-processors/nodeless-payments-processor.ts(14%)src/payments-processors/null-payments-processor.ts(40%)src/payments-processors/opennode-payments-processor.ts(17%)src/payments-processors/zebedee-payments-processor.ts(17%)Out of scope
src/services/payments-service.ts— covered by test: add unit tests for MaintenanceWorker and PaymentsService #440Acceptance criteria
.spec.tsundertest/unit/payments-processors/npm run cover:unitpasses without regressions