Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#903 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
829
Fork
234
Merge medio
18h 18m
PR unite (30g)
69

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cameri/nostream

Tutte le issue di cameri/nostream

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.