mirror of https://github.com/nodejs/corepack.git
test: wait for stdio streams of process to close (#169)
This commit is contained in:
parent
f241dff8d5
commit
11d24f8565
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue