Skip to content

PerformanceChart has no tests: chart data derivation is uncovered #915

Description

@nanaf6203-bit

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.

Activity

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

Metadata

Metadata

Assignees

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