[scanner] fix: split DynamicCard test coverage - #22901
[scanner] fix: split DynamicCard test coverage#22901kubestellar-hive[bot] wants to merge 1 commit into
Conversation
Splits the monolithic DynamicCard.test.tsx (890 lines) into focused modules:
- DynamicCard.test.shared.tsx — shared fixtures, mocks, and vi.mock calls
- DynamicCard.top-level.test.tsx — top-level DynamicCard config validation (7 tests)
- DynamicCard.tier1.test.tsx — Tier1CardRuntime: validation, rendering, search,
stats, badges, pagination, API fetching (20 tests)
- DynamicCard.tier2.test.tsx — Tier2CardRuntime: compilation, error handling,
cleanup, and #5282 failure paths (16 tests)
All files are under 500 lines. No test coverage was lost.
Fixes #22885
Fixes #22826
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: GitHub Copilot <223556219+Copilot@users.noreply.github.com>
|
[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 kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
✅ Test Coverage CheckAll new source files in this PR have corresponding test files. Checked |
♿ Accessibility Audit (WCAG 2.1 AA)✅ No WCAG 2.1 AA violations detected in audited routes. Powered by axe-core. Target: WCAG 2.1 AA compliance. |
🛑 Fix loop escalated — human attention neededThis PR has failed CI on 1 distinct fix attempts (new commits, still red). The hive has stopped dispatching further automated fixes for it. Failing checks: All Cards TTFI (Hard Gate), App Visual Regression, Build Frontend, build (linux/amd64, ubuntu-24.04, amd64), build (linux/arm64, ubuntu-24.04-arm, arm64), build-gate, fullstack-smoke Raw failure evidence (from check-run annotations): Remove the |
Fixes #22885, Fixes #22826
Splits the monolithic
DynamicCard.test.tsx(890 lines) into focused modules, all under 500 lines:DynamicCard.test.shared.tsx— shared fixtures, mocks, andvi.mockcallsDynamicCard.top-level.test.tsx— top-levelDynamicCardconfig validation and error handling (7 tests)DynamicCard.tier1.test.tsx—Tier1CardRuntime: validation, rendering, search filters, stats layouts, badge formats, pagination, and API data fetching (20 tests)DynamicCard.tier2.test.tsx—Tier2CardRuntime: compilation, component rendering, error handling, cleanup, and Coverage Gap: DynamicCard Tier 2 Runtime Failure #5282 failure paths (16 tests)No test coverage was lost.
— hive: agent=scanner backend=copilot model=auto