Skip to content

test: add unit tests for DashboardStats - #579

Merged
Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
SYMBAxx:test/dashboard-stats-507
Aug 24, 2026
Merged

test: add unit tests for DashboardStats#579
Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
SYMBAxx:test/dashboard-stats-507

Conversation

@SYMBAxx

@SYMBAxx SYMBAxx commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Closes #507

Adds Vitest + Testing Library setup and unit tests for components/streams/dashboard-stats.tsx, covering stat aggregation given a set of mock streams.

Rebased onto current main, which since this branch was first opened has
gained a fourth Total streaming value USD stat (usePortfolioValue/
useShowUsd), moved tests under __tests__/, and switched the unlock math
from amountPerSecond to linearAmount/duration. Covers stat aggregation
(counts, active-streaming counts, per-token withdrawable summation) and
the USD total stat, using data-testid scoping per the existing
stream-card.test.tsx convention.
@SYMBAxx
SYMBAxx force-pushed the test/dashboard-stats-507 branch from 4fa9b00 to a0d7e82 Compare August 24, 2026 00:26
@Austinaminu2
Austinaminu2 merged commit f532c25 into FlowwStar:main Aug 24, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for components/streams/dashboard-stats.tsx

2 participants