From c510819407d91975340bee1249502c51c6a3bde9 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 19 Jan 2022 10:38:51 -0800 Subject: [PATCH] fix(windows): hide child console window when running PrintDeps (#11468) --- packages/playwright-core/src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-core/src/utils/utils.ts b/packages/playwright-core/src/utils/utils.ts index a17561ef6c..e977c26f10 100644 --- a/packages/playwright-core/src/utils/utils.ts +++ b/packages/playwright-core/src/utils/utils.ts @@ -241,7 +241,7 @@ function toMegabytes(bytes: number) { } export function spawnAsync(cmd: string, args: string[], options: SpawnOptions = {}): Promise<{stdout: string, stderr: string, code: number | null, error?: Error}> { - const process = spawn(cmd, args, options); + const process = spawn(cmd, args, Object.assign({ windowsHide: true }, options)); return new Promise(resolve => { let stdout = '';