Test depth on the money paths: raise the playerActions ratchet; integration tests against a real chain

Aperta
#630 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
blockchain, typescript

Direzione di ricerca

Start with src/hooks/playerActions/, jest.config.js, and src/submit/ to map existing test coverage and the current 45/38/43/45 ratchet. Then inspect the available pokerchaind or pokerchain e2e job and how ignite chain serve could run in CI. Done means new tests cover failed execution, stale index, sequence mismatch, and forced-timeout races while the ratchet increases and no stub-only assumption remains.

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

Descrizione

good first issue

Follow-ups split out of #619 when it closed (coverage in CI landed in #622; the lint job lives with #601).

  • Raise the src/hooks/playerActions/ ratchet as tests are added. #622 pinned it at 45/38/43/45 (statements/branches/functions/lines) because 17 of 25 files there have no test pairing — it holds the line today and nothing more. Each new test file should move the ratchet in jest.config.js up behind it; never lower a ratchet to make a build pass.
  • Integration tests against a real chain + SDK, not the stub. The review's sharpest point: a faithful stub can still reproduce the client's own mistaken assumptions. The stub-based e2e suite passed while #609's confirmation bug was live, precisely because the stub behaved as the UI expected — it records actions under the names the UI sends and never rejects a broadcast at execution. A small suite that drives the UI (or at least src/submit/ + the SDK signing client) against a local pokerchaind — a failed-execution tx (code ≠ 0), a stale index, a sequence mismatch, a forced timeout superseding a late call — would catch that class. Candidates: ignite chain serve in CI with the embedded engine, or the pokerchain e2e job if one exists.
Lingua principale
TypeScript
Stelle
2
Fork
5
Merge medio
22h 35m
PR unite (30g)
91

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 block52/ui

Tutte le issue di block52/ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.