repro: normalize hook names and use JSON for blocking test

This commit is contained in:
Taylor Mullen
2026-02-10 13:04:04 -08:00
parent 20bcd4e2a2
commit b077cfe061
2 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -101,8 +101,11 @@ describe('Hooks System Integration', () => {
const scriptPath = rig.createScript(
'stderr_block_hook.cjs',
`
process.stderr.write('File writing blocked by security policy');
process.exit(2);
console.log(JSON.stringify({
decision: 'deny',
reason: 'File writing blocked by security policy'
}));
process.exit(0);
`,
);