PerformanceChart has no tests: chart data derivation is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
PerformanceChart (src/components/dashboard/PerformanceChart.tsx) renders the portfolio performance chart. It has no tests (the dashboard charts.a11y.test.tsx covers accessibility only). A regression that drops series or mis-shapes chart data ships silently.
Proposal
- Add a spec covering chart-data derivation from store fixtures (empty, single-point, multi-series) and rendering.
Acceptance criteria
- The spec covers chart data shapes and rendering; it passes via
npm test.
Getting started
src/components/dashboard/PerformanceChart.tsx
src/components/dashboard/__tests__/charts.a11y.test.tsx — the existing pattern
Commands: npm test.
Good first files to read: src/components/dashboard/PerformanceChart.tsx.
PerformanceChart has no tests: chart data derivation is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
PerformanceChart(src/components/dashboard/PerformanceChart.tsx) renders the portfolio performance chart. It has no tests (the dashboardcharts.a11y.test.tsxcovers accessibility only). A regression that drops series or mis-shapes chart data ships silently.Proposal
Acceptance criteria
npm test.Getting started
src/components/dashboard/PerformanceChart.tsxsrc/components/dashboard/__tests__/charts.a11y.test.tsx— the existing patternCommands:
npm test.Good first files to read:
src/components/dashboard/PerformanceChart.tsx.