diff --git a/src/test/runTest.ts b/src/test/runTest.ts index 4e955a9..0c2206b 100644 --- a/src/test/runTest.ts +++ b/src/test/runTest.ts @@ -16,6 +16,11 @@ const spawn = (cliPath: string, args: string[]): Promise => { console.error(`stderr: ${data}`); }); + child.on("error", (err) => { + console.error("Failed to start subprocess."); + return reject(); + }); + child.on("close", (code) => { console.log(`child process exited with code ${code}`); return resolve();