RiskAnalysis has no tests: risk score derivation is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
RiskAnalysis (src/components/dashboard/RiskAnalysis.tsx) renders the portfolio risk analysis. It has no tests. A regression that mis-derives risk scores or drops levels ships silently in the dashboard's risk view.
Proposal
- Add a spec covering risk-level derivation from store fixtures (low/medium/high) and rendering.
Acceptance criteria
- The spec covers risk derivation and rendering; it passes via
npm test.
Getting started
src/components/dashboard/RiskAnalysis.tsx
src/components/dashboard/__tests__/DataRefreshWrapper.test.tsx — the pattern
Commands: npm test.
Good first files to read: src/components/dashboard/RiskAnalysis.tsx.
RiskAnalysis has no tests: risk score derivation is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
RiskAnalysis(src/components/dashboard/RiskAnalysis.tsx) renders the portfolio risk analysis. It has no tests. A regression that mis-derives risk scores or drops levels ships silently in the dashboard's risk view.Proposal
Acceptance criteria
npm test.Getting started
src/components/dashboard/RiskAnalysis.tsxsrc/components/dashboard/__tests__/DataRefreshWrapper.test.tsx— the patternCommands:
npm test.Good first files to read:
src/components/dashboard/RiskAnalysis.tsx.