test(renderer): follow extracted IPC shortcut bridge

This commit is contained in:
Neil
2026-08-23 18:23:27 -07:00
parent dcd3c5a8b3
commit aa3b6c08a0
@@ -135,7 +135,10 @@ describe('Cmd/Ctrl+1-9 folder-workspace path gate (#10716)', () => {
// Why: the guard only helps if the IPC handler actually calls it. Pin the source
// so re-pointing the handler back at the unguarded activateAndRevealWorktree fails.
it('wires onJumpToWorktreeIndex to the guarded workspace activator', async () => {
const source = await readFile(new URL('../hooks/useIpcEvents.ts', import.meta.url), 'utf8')
const source = await readFile(
new URL('../hooks/ipc-events/workspace-shortcut-ipc-bridge.ts', import.meta.url),
'utf8'
)
const handler = source.slice(
source.indexOf('onJumpToWorktreeIndex('),
source.indexOf('onJumpToTabIndex(')