test: wait for stdio streams of process to close (#169)

This commit is contained in:
Kristoffer K 2022-08-24 18:48:41 +02:00 committed by GitHub
parent f241dff8d5
commit 11d24f8565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export async function runCli(cwd: PortablePath, argv: Array<string>) {
reject(error);
});
child.on(`exit`, exitCode => {
child.on(`close`, exitCode => {
resolve({
exitCode,
stdout: Buffer.concat(out).toString(),