test(frontend): boost SPA coverage for utils, hooks, and small UI - #217
Merged
Conversation
added 5 commits
August 3, 2026 22:48
Add unit tests for tableUtils, statusAuthorDefaults, fetchJson error paths, and statusGlyph so high-ROI modules are no longer at 0% coverage.
Exercise localStorage load/persist for graph height and the shared useFormSubmit success/error paths used by auth forms.
Add component tests for status chip styling, table pagination controls, and the resizable graph shell chrome.
Mock dashboard/outlet context to assert loading, empty-project, navigation, and help section rendering without mounting the full app shell.
Assert style presence without relying on happy-dom hsl normalization.
Frontend SPA coverage (by module)
Generated from Vitest |
|
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tableUtils,statusAuthorDefaults,transport,statusGlyph)useFormSubmit,useResizableGraphHeightload/persist/drag)StatusBadge,Pagination,ResizableGraphShell)HomeRedirect,NoProjectsHome,HelpPage) with mocked dashboard/outletCoverage result (local)
Notable module rates now:
utils/lib— 100%hooks— 49% (was ~18%)components/table— 79%components/graph— 48%transport.ts— 100%Large pages (
MatrixPage,ReportsPage, catalog/groups) remain deferred.Test plan
cd frontend && npm test(125 tests green)frontend-testsposts updated module coverage commentMade with Cursor