referralStore has no tests: referral links and stats state are uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
referralStore (src/store/referralStore.ts) and the src/store/referral/ submodule hold referral links and stats. They have no tests. A regression that serves wrong referral links or stale stats ships silently in the referral program UI.
Proposal
- Add a spec covering link generation, stats updates, and state reset.
Acceptance criteria
- The spec asserts referral state behavior; it passes via
npm test.
Getting started
src/store/referralStore.ts, src/store/referral/
src/store/__tests__/transactionStore.test.ts — the pattern
Commands: npm test.
Good first files to read: src/store/referralStore.ts.
referralStore has no tests: referral links and stats state are uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
referralStore(src/store/referralStore.ts) and thesrc/store/referral/submodule hold referral links and stats. They have no tests. A regression that serves wrong referral links or stale stats ships silently in the referral program UI.Proposal
Acceptance criteria
npm test.Getting started
src/store/referralStore.ts,src/store/referral/src/store/__tests__/transactionStore.test.ts— the patternCommands:
npm test.Good first files to read:
src/store/referralStore.ts.