DiversificationChart has no tests: allocation chart data is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
DiversificationChart (src/components/dashboard/DiversificationChart.tsx) renders the allocation/diversification chart. It has no tests. A regression that mis-computes allocation percentages (totals not summing to 100) ships silently in the dashboard.
Proposal
- Add a spec covering allocation derivation for normal and edge (empty, zero-total) inputs.
Acceptance criteria
- The spec asserts allocation output for the fixtures; it passes via
npm test.
Getting started
src/components/dashboard/DiversificationChart.tsx
src/components/dashboard/__tests__/charts.a11y.test.tsx — the pattern
Commands: npm test.
Good first files to read: src/components/dashboard/DiversificationChart.tsx.
DiversificationChart has no tests: allocation chart data is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
DiversificationChart(src/components/dashboard/DiversificationChart.tsx) renders the allocation/diversification chart. It has no tests. A regression that mis-computes allocation percentages (totals not summing to 100) ships silently in the dashboard.Proposal
Acceptance criteria
npm test.Getting started
src/components/dashboard/DiversificationChart.tsxsrc/components/dashboard/__tests__/charts.a11y.test.tsx— the patternCommands:
npm test.Good first files to read:
src/components/dashboard/DiversificationChart.tsx.