Skip to content

Commit 11d24f8

Browse files
authored
test: wait for stdio streams of process to close (#169)
1 parent f241dff commit 11d24f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/_runCli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function runCli(cwd: PortablePath, argv: Array<string>) {
2424
reject(error);
2525
});
2626

27-
child.on(`exit`, exitCode => {
27+
child.on(`close`, exitCode => {
2828
resolve({
2929
exitCode,
3030
stdout: Buffer.concat(out).toString(),

0 commit comments

Comments
 (0)