Repository navigation
test: strengthen hook, navigation, and release coverage - #33028
Conversation
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
85380ef5-1c96-4473-968c-e482a0b646eb
Files selected for processing: 15-
config/scripts/regenerate-xterm-patches.test.mjsconfig/scripts/relay-era-ref-refusal-workflow.test.mjsconfig/scripts/release-cut-token-permissions.test.mjsmobile/src/navigation/route-handoff-host-area.web.test.tsxmobile/src/navigation/route-handoff.web.test.tsxmobile/src/navigation/use-back-claim.web.test.tsxmobile/src/navigation/workspace-route-handoff.test.tsxmobile/src/navigation/workspace-route.test.tsxsrc/shared/agent-hook-listener-grok-completion.test.tssrc/shared/agent-hook-listener-grok.test.tssrc/shared/agent-hook-listener-opencode-session-correlation.test.tssrc/shared/agent-hook-listener-opencode-tui-identity.test.tssrc/shared/agent-hook-relay.test.tssrc/shared/agent-hook-transport-interference.test.tssrc/shared/agent-notification-id.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
| describe('every workspace route', () => { | ||
| it('is found on disk', () => { | ||
| expect(WORKSPACE_ROUTE_FILES.length).toBeGreaterThanOrEqual(14) | ||
| expect(WORKSPACE_ROUTE_FILES.length).toBeGreaterThan(0) |
There was a problem hiding this comment.
🎯 Functional Correctness |
Keep a meaningful workspace-route inventory check.
If all but one workspace route disappears, this assertion passes and the remaining tests inspect only that route. The previous minimum of 14 caught that regression. Retain the supported minimum or assert the expected route paths explicitly.
Existing tests could pass while hooks lost prompt text or assigned stale ownership, navigation dropped destinations/options, or release workflows skipped refusal checks or requested excess permissions. Strengthen existing cases with distinct inputs and independent output assertions; unmount test renderers and close bridge clients after each case.
Replace copied Git flag checks with a real nested-checkout diff and remove one RPC-constant declaration. Narrow two titles to the behavior exercised. No production changes.
Validation: 220 focused cases pass without skips across 16 reviewed sources (188 declarations become 186); 15 test files change. Node typecheck, mobile test-typecheck ratchet, changed-code quality, React Doctor, formatting and commit hooks pass. Regression and cleanup probes confirm repaired gaps and retained coverage. Exact committed source hashes match the tested inputs; local audit artifacts remain uncommitted.