Repository navigation
test(gui): RTL sprint Phase 3 — hooks, canvas, CLI health, stream bra… - #59
Merged
Merged
Conversation
…nches
- Chunk A — pure hooks:
- useKeyboardShortcuts: 18 tests (all key combos, input blocking, unmount cleanup)
- useMenubarInteractions: 6 tests (toggle exclusivity, click-outside, cleanup)
- useFileOperations: 6 tests (createFileOperations wiring, memoization)
- usePreviewGeneration: 10 tests (validation errors, success, warnings, errors)
- Chunk B — context + CLI health:
- useCliHealth: 14 tests (checkOnMount, healthy/unhealthy/error/invalid, polling,
manual refresh); uses vi.hoisted() for cross-module mock; fake timers scoped
to polling describe block only
- CliHealthContext: 2 tests (provider renders children, hook throws outside provider)
- Chunk C — stream hook branch coverage:
- useConnectionActions: 13 tests (refreshPorts all branches, connect/disconnect)
- useManualCommandActions: 14 tests (guard conditions, special G28/M112 cmds)
- useStreamingActions: 24 tests (select/clear/start/pause/resume/stop/cancel
success + error + early-return paths)
- Chunk D — MainTab: 7 tests (slot rendering, collapsed classes, data-collapsed)
- Raise coverage thresholds: lines/stmts 55→60, functions 55→65, branches 35→50
- Total: 614 tests across 53 test files (lines 79.81%, branches 91.17%, funcs 87.73%)
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.
…nches
Chunk A — pure hooks:
Chunk B — context + CLI health:
Chunk C — stream hook branch coverage:
Chunk D — MainTab: 7 tests (slot rendering, collapsed classes, data-collapsed)
Raise coverage thresholds: lines/stmts 55→60, functions 55→65, branches 35→50
Total: 614 tests across 53 test files (lines 79.81%, branches 91.17%, funcs 87.73%)