From 11d24f85659d9bc8a869b77a8523e775ddc91632 Mon Sep 17 00:00:00 2001 From: Kristoffer K Date: Wed, 24 Aug 2022 18:48:41 +0200 Subject: [PATCH] test: wait for stdio streams of process to close (#169) --- tests/_runCli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),