diff --git a/tests/_runCli.ts b/tests/_runCli.ts index 347fc4cef..182f40ab1 100644 --- a/tests/_runCli.ts +++ b/tests/_runCli.ts @@ -24,7 +24,7 @@ export async function runCli(cwd: PortablePath, argv: Array) { reject(error); }); - child.on(`exit`, exitCode => { + child.on(`close`, exitCode => { resolve({ exitCode, stdout: Buffer.concat(out).toString(),