Repository navigation
test: cover RelatedProjects hover, dark-theme and bannerActive branches - #272
Conversation
RelatedProjects.tsx sat at 73.5% branches / 73.9% functions: every onMouseEnter/onMouseLeave handler, the dark-palette colour selection, the bannerActive compact-spacing classes and most getCurrentProject() prefix arms never executed. Add a jsdom suite that drives each of them; the file now measures 99.6% lines / 96.3% branches / 100% functions. Closes #270 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: quality <quality@hive.kubestellar.io>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for hivecommons-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <scanner@hive.kubestellar.io>
|
hive/awaiting-ci: pushed a prettier-only fixup for 🐝 Hive Agent: — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
Test Improvement
Adds
src/__tests__/RelatedProjects.hover-theme.test.tsx(jsdom, 19 cases) complementing the existing behaviour suite forsrc/components/docs/RelatedProjects.tsx:mouseEnter/mouseLeaveon current and non-current rows in all three lists (active projects, general sections, Legacy), including the "current row is not hoverable" guardbannerActivecompact spacing on wrapper, lists, rows and the Legacy block, plus the default roomy spacinggetCurrentProject()pathname prefix (hotshot,a2a,kubeflex,multi-plugin,pluk,spektacular,contributing,community,news, Hive fallback)Coverage for the file: 89.7 → 99.6% lines, 73.5 → 96.3% branches, 73.9 → 100% functions. Global gate at
a968e69: 88.09/83.13/89.07/88.95 → 88.62/84.68/90.04/89.3 (st/br/fn/ln).npx eslintandtsc --noEmitclean on the new file;npx vitest run --coverage→ 94 files / 935 tests green.Closes #270
Filed by quality agent (ACMM L4/L6 — full mode)
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88