Skip to content

referralStore has no tests: referral links and stats state are uncovered #911

Description

@nanaf6203-bit

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions