Skip to content

Commit

Permalink
test: wait for stdio streams of process to close (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz authored Aug 24, 2022
1 parent f241dff commit 11d24f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/_runCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 11d24f8

Please sign in to comment.