Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

No unit tests for four of six payment processors (nodeless, lnurl, opennode, zebedee)

Đang mở
#903 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Priyanshubhartistm đang làm issue này rồi.

Từ ngày 20/10/2026.

  • #917 của @Priyanshubhartistm — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, payments, testing

Hướng nghiên cứu

Read the four processor implementations in src/payments-processors/ and the existing specs for nwc and lnbits in test/unit/payments-processors/. Add unit specs covering createInvoice request mapping, getInvoice status mapping, and provider error or malformed response behavior. Done means all four processors have focused specs and the relevant unit tests pass.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Gap

Four of the six payment processors have no unit tests at all — no spec file imports them:

  • src/payments-processors/nodeless-payments-processor.ts (74 lines)
  • src/payments-processors/lnurl-payments-processor.ts (68 lines)
  • src/payments-processors/opennode-payments-processor.ts (64 lines)
  • src/payments-processors/zebedee-payments-processor.ts (61 lines)

Each implements getInvoice / createInvoice against a third-party API. The nwc and lnbits processors do have specs (test/unit/payments-processors/), and the zebedee/opennode/nodeless callback schemas are tested — so this is an inconsistency, not a project-wide absence. The money-moving code paths for four providers are the ones without coverage.

How measured

Import graph over the suite: 175 spec files vs 325 src/**/*.ts files — zero spec files reference these four modules.

What's worth covering

  • createInvoice request mapping per provider (amounts, units, metadata) — the shape bugs live here
  • getInvoice status mapping (paid/pending/expired) — misreading a provider's status is a funds bug
  • Error paths: provider outage, malformed responses — what the caller sees and whether anything is retried or lost
Ngôn ngữ chính
TypeScript
Star
829
Fork
234
Merge trung bình
17 giờ 46 phút
Pull request đã merge (30 ngày)
73

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cameri/nostream

Tất cả issue của cameri/nostream

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.