diff --git a/src/__tests__/hooks-e2e.test.ts b/src/__tests__/hooks-e2e.test.ts index 098c723..58bd9cd 100644 --- a/src/__tests__/hooks-e2e.test.ts +++ b/src/__tests__/hooks-e2e.test.ts @@ -39,7 +39,7 @@ async function readResult(filePath: string): Promise> { describe('hooks E2E — real file I/O', () => { describe('inject — full injection to temp directories', () => { - it('creates Claude settings.json with all 4 events and 13 hooks', async () => { + it('creates Claude settings.json with all 4 events and 15 hooks', async () => { const p = claudePath(); await injectHooks(p, 'claude'); @@ -47,13 +47,13 @@ describe('hooks E2E — real file I/O', () => { const hooks = result.hooks as Record; expect(Object.keys(hooks)).toEqual(['SessionStart', 'Stop', 'PostToolUse', 'UserPromptSubmit']); - expect(hooks.SessionStart).toHaveLength(2); + expect(hooks.SessionStart).toHaveLength(3); expect(hooks.Stop).toHaveLength(3); - expect(hooks.PostToolUse).toHaveLength(6); + expect(hooks.PostToolUse).toHaveLength(7); expect(hooks.UserPromptSubmit).toHaveLength(2); }); - it('creates Cursor hooks.json with all 4 events and 13 hooks', async () => { + it('creates Cursor hooks.json with all 4 events and 15 hooks', async () => { const p = cursorPath(); await injectHooks(p, 'cursor'); @@ -62,9 +62,9 @@ describe('hooks E2E — real file I/O', () => { const hooks = result.hooks as Record; expect(Object.keys(hooks)).toEqual(['sessionStart', 'stop', 'postToolUse', 'beforeSubmitPrompt']); - expect(hooks.sessionStart).toHaveLength(2); + expect(hooks.sessionStart).toHaveLength(3); expect(hooks.stop).toHaveLength(3); - expect(hooks.postToolUse).toHaveLength(6); + expect(hooks.postToolUse).toHaveLength(7); expect(hooks.beforeSubmitPrompt).toHaveLength(2); });