fix: run pre-bash linters through windows wrappers

This commit is contained in:
Affaan Mustafa
2026-04-29 18:50:46 -04:00
committed by Affaan Mustafa
parent ae02b26cf9
commit b5bdd9352f
2 changed files with 61 additions and 22 deletions

View File

@@ -274,11 +274,12 @@ if (test('stdin entry point truncates oversized input and preserves pass-through
filler: 'x'.repeat(1024 * 1024 + 1024)
}
});
const result = spawnSync('node', [path.join(__dirname, '..', '..', 'scripts', 'hooks', 'pre-bash-commit-quality.js')], {
const result = spawnSync(process.execPath, [path.join(__dirname, '..', '..', 'scripts', 'hooks', 'pre-bash-commit-quality.js')], {
input: oversized,
encoding: 'utf8',
stdio: ['pipe', 'pipe', 'pipe'],
timeout: 10000
timeout: 10000,
maxBuffer: 2 * 1024 * 1024
});
assert.strictEqual(result.status, 0);