mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-19 17:50:37 -07:00
test: fix Windows CI execution and resolve exposed platform failures (#24476)
This commit is contained in:
@@ -513,7 +513,11 @@ describe('HookRunner', () => {
|
||||
const args = vi.mocked(spawn).mock.calls[
|
||||
executionOrder.length
|
||||
][1] as string[];
|
||||
const command = args[args.length - 1];
|
||||
let command = args[args.length - 1];
|
||||
// On Windows, the command is wrapped in PowerShell syntax
|
||||
if (command.includes('; if ($LASTEXITCODE -ne 0)')) {
|
||||
command = command.split(';')[0];
|
||||
}
|
||||
executionOrder.push(command);
|
||||
setImmediate(() => callback(0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user