Skip to content

usePerformanceMonitoring has no tests: metric capture and reporting are uncovered #894

Description

@nanaf6203-bit

usePerformanceMonitoring has no tests: metric capture and reporting are uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

usePerformanceMonitoring (src/hooks/usePerformanceMonitoring.ts) captures and reports performance metrics. It has no tests. A regression that stops reporting (or double-reports) ships silently and blinds the perf dashboards.

Proposal

  • Add a spec covering metric capture, reporting payloads, and cleanup.

Acceptance criteria

  • The spec asserts captured metrics and report calls; it passes via npm test.

Getting started

  • src/hooks/usePerformanceMonitoring.ts — the hook
  • src/hooks/__tests__/useToast.test.ts — the pattern

Commands: npm test.

Good first files to read: src/hooks/usePerformanceMonitoring.ts.

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