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.
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
Acceptance criteria
npm test.Getting started
src/hooks/usePerformanceMonitoring.ts— the hooksrc/hooks/__tests__/useToast.test.ts— the patternCommands:
npm test.Good first files to read:
src/hooks/usePerformanceMonitoring.ts.