No unit tests for four of six payment processors (nodeless, lnurl, opennode, zebedee)
維護者通常 1 天內回覆
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 72/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
createInvoicerequest mapping per provider (amounts, units, metadata) — the shape bugs live heregetInvoicestatus 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
- 主要語言
- TypeScript
- 星號
- 829
- 分支
- 234
- 平均合併
- 16 小時 13 分鐘
- 30 天內合併 PR
- 74
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cameri/nostream 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
Website
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 55/100
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 55/100
維護者通常 1 天內回覆
-
[BUG] LNbits >= 1.0: ISO 8601 time/expiry parsed as unix seconds, paid admissions never confirmed未關閉
難度 2/5 1-3 小時 新手友好度 25/100
維護者通常 1 天內回覆
相似的 Issue
-
createAI: the ai peer range allows ai@6, which the provider cannot work with可能已有人在做 @akhil9tiet 今天認領。 未關閉bug
難度 1/5 1 小時以內 新手友好度 83/100
cloudflare/agents#2690 · 3 則留言 ·
維護者通常 1 天內回覆
-
[fullsend] E2E: theme — global-header ignores app.branding.fullLogo (RHDHBUGS-3670)可能已有人在做 @fullsend-ai-coder 今天認領。 未關閉e2e-failure ready-to-code
難度 1/5 1 小時以內 新手友好度 78/100
redhat-developer/rhdh-plugin-export-overlays#4503 · 1 則留言 ·
維護者通常 1 天內回覆
-
needs triage 📥
難度 1/5 1 小時以內 新手友好度 86/100
ethereum/ethereum-org-website#19601 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
cloudscape-design/components#5184 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
agilepathway/label-checker#805 ·
維護者通常 1 天內回覆