repro: re-enable diagnostic logging and focus failing hook tests

This commit is contained in:
Taylor Mullen
2026-02-10 15:00:23 -08:00
parent 88d677207c
commit cbba40eb66
6 changed files with 31 additions and 5 deletions
+5 -4
View File
@@ -5,9 +5,8 @@
*/
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
import { TestRig } from './test-helper.js';
import { TestRig, normalizePath } from './test-helper.js';
import { join } from 'node:path';
import { writeFileSync } from 'node:fs';
describe('Hooks Agent Flow', () => {
let rig: TestRig;
@@ -283,7 +282,7 @@ describe('Hooks Agent Flow', () => {
hooks: [
{
type: 'command',
command: `node "${baPath}"`,
command: normalizePath(`node "${baPath}"`)!,
timeout: 5000,
},
],
@@ -294,13 +293,15 @@ describe('Hooks Agent Flow', () => {
hooks: [
{
type: 'command',
command: `node "${aaPath}"`,
command: normalizePath(`node "${aaPath}"`)!,
timeout: 5000,
},
],
},
],
},
],
},
},
},
);
+1 -1
View File
@@ -87,7 +87,7 @@ describe('Hooks System Integration', () => {
expect(hookTelemetryFound).toBeTruthy();
});
it('should block tool execution and use stderr as reason when hook exits with code 2', async () => {
it.only('should block tool execution and use stderr as reason when hook exits with code 2', async () => {
rig.setup(
'should block tool execution and use stderr as reason when hook exits with code 2',
{