From 0fab1294531f9099e0364f4cf9bd92314f1ac0d9 Mon Sep 17 00:00:00 2001 From: Abhi Date: Fri, 6 Feb 2026 13:42:09 -0500 Subject: [PATCH] test(integration): remove redundant path normalization Removes unnecessary .replace(/\\/g, '/') calls in hooks-system.test.ts since the createHookScript helper now handles path normalization internally. --- integration-tests/hooks-system.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-tests/hooks-system.test.ts b/integration-tests/hooks-system.test.ts index 508c82c3e4..a40a1b2314 100644 --- a/integration-tests/hooks-system.test.ts +++ b/integration-tests/hooks-system.test.ts @@ -46,7 +46,7 @@ describe('Hooks System Integration', () => { hooks: [ { type: 'command', - command: `node "${scriptPath.replace(/\\/g, '/')}"`, + command: `node "${scriptPath}"`, timeout: 5000, }, ], @@ -104,7 +104,7 @@ describe('Hooks System Integration', () => { { type: 'command', // Exit with code 2 and write reason to stderr - command: `node "${scriptPath.replace(/\\/g, '/')}"`, + command: `node "${scriptPath}"`, timeout: 5000, }, ], @@ -164,7 +164,7 @@ describe('Hooks System Integration', () => { hooks: [ { type: 'command', - command: `node "${scriptPath.replace(/\\/g, '/')}"`, + command: `node "${scriptPath}"`, timeout: 5000, }, ], @@ -889,7 +889,7 @@ try { type: 'command', // Output plain text then JSON. // This breaks JSON parsing, so it falls back to 'allow' with the whole stdout as systemMessage. - command: `node "${scriptPath.replace(/\\/g, '/')}"`, + command: `node "${scriptPath}"`, timeout: 5000, }, ],