Skip to content

Expand unit test coverage for untested pages #10

Description

@priscaenoch

Problem

There are 8 test files under test/ for ~92 source modules in src/. Several core pages have no tests, including ContractPage, EventPage, GraphPage, Sandbox, BatchMultiCall, RpcMetricsDashboard, RateLimitDashboard, and SubInvocationPage.

What needs to be done

  • Add Testing Library tests for the untested pages listed above, mocking the API client.
  • Cover: initial render, loading state, successful data render, and error state for each page that fetches.
  • Add tests for critical utilities in src/utils (formatting, XDR helpers) that currently lack coverage.

Files

  • new tests under test/
  • may require exporting/mocking the shared API client

Acceptance deliverables

  • Each listed page has at least render + loading + error tests.
  • Test count meaningfully increases and npm test passes.

Tests to pass

  • New tests pass in CI.
  • No reduction in existing coverage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions