diff --git a/e2e/Utils.ts b/e2e/Utils.ts index 1f5daba040ce..1b8022754970 100644 --- a/e2e/Utils.ts +++ b/e2e/Utils.ts @@ -20,7 +20,7 @@ export type RunResult = ExecaReturns & { }; export const run = (cmd: string, cwd?: Config.Path): RunResult => { const args = cmd.split(/\s/).slice(1); - const spawnOptions = {cwd, reject: false}; + const spawnOptions = {cwd, shell: true, reject: false, preferLocal: false}; const result = spawnSync(cmd.split(/\s/)[0], args, spawnOptions) as RunResult; // For compat with cross-spawn