Skip to content

Desloppify: 27 untested modules (test_coverage detector) #404

@elfensky

Description

@elfensky

Surfaced by desloppify scan. The test_coverage detector flagged 27 modules with no unit tests. Test health currently scores 33.1% strict — the largest dimension drag (74 pts of headroom).

Untested modules

Pages & error boundaries

  • src/app/stats/page.jsx (82 LOC)
  • src/app/error.jsx (12 LOC)
  • src/app/archives/error.jsx (12 LOC)

Shared components

  • src/shared/components/Button/Button.jsx (49 LOC)
  • src/shared/components/ComponentErrorBoundary.jsx (43 LOC)
  • src/shared/components/PreferenceTracker.jsx (12 LOC)
  • src/shared/components/StatusDot.jsx (35 LOC)
  • src/shared/components/RouteError.jsx (21 LOC)
  • src/shared/components/JsonLd.jsx (20 LOC)
  • src/shared/components/PageSkeleton.jsx (19 LOC)
  • src/shared/components/MermaidDiagram/DetailPanel.jsx (78 LOC)
  • src/shared/components/MermaidDiagram/initMermaid.mjs (29 LOC)
  • src/shared/components/MermaidDiagram/useMermaidRender.mjs (44 LOC)

Hooks & providers

  • src/shared/hooks/usePreferenceSnapshot.mjs (40 LOC)
  • src/shared/providers/LiveDataProvider.jsx (29 LOC)

Feature components

  • src/features/archives/RefreshSeasonButton.jsx (77 LOC)
  • src/features/archives/FactionHealthChartLoader.jsx (13 LOC)
  • src/features/galaxy/Galaxy.jsx (10 LOC)
  • src/features/timeline/EventCardLayout.jsx (68 LOC)
  • src/features/timeline/EventLogSortToggle.jsx (23 LOC)
  • src/features/timeline/CascadeLogSortToggle.jsx (24 LOC)

Utilities

  • src/shared/utils/game/pulseDelays.mjs (23 LOC)
  • src/shared/enums/colors.mjs (11 LOC)
  • src/shared/preferences/sortOrder.mjs (13 LOC)

Worker / instrumentation

  • src/sw.js (130 LOC) — service worker
  • src/instrumentation.node.js (21 LOC)

DB queries

  • src/db/queries/getKillsTrend.mjs (71 LOC)

Triage note

  • Per memory/feedback_* and CLAUDE.md, test additions should prioritize meaningful coverage over numbers — focus on pure utils (pulseDelays, sortOrder, colors), the DB query (getKillsTrend), and the service worker (sw.js) first.
  • Trivial JSX wrappers (Galaxy.jsx at 10 LOC, FactionHealthChartLoader.jsx at 13 LOC) may be reasonable wontfix candidates.
  • Error boundaries and page-level components benefit from at least a smoke render test.

Detector: test_coverage::untested_module · Tier T3

🤖 Filed by /desloppify

Metadata

Metadata

Assignees

No one assigned

    Labels

    desloppifytestingTest suite work — unit, integration, coverage

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions