Skip to content

RiskAnalysis has no tests: risk score derivation is uncovered #918

Description

@nanaf6203-bit

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.

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions