Skip to content

testing: add unit tests for useRewardDistribution #462

Description

@nanaf6203-bit

Summary

src/hooks/useRewardDistribution.ts lacks unit tests for the bell-curve distribution algorithm and receipt shape.

Affected area

src/hooks/useRewardDistribution.ts, src/hooks/__tests__

Steps to reproduce

There is no test file.

Expected behaviour

Add tests for correct weighting, empty rewards, max-distribution cap, and re-render frequency.

Acceptance criteria

  • >90 % branch coverage on the hook.
  • Mocked provider confirms correct BigInt math.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programpriority/p2P2 — medium prioritytestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions