Skip to content

Commit

Permalink
test(examples): fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Sep 20, 2023
1 parent 6158a74 commit 94dfdfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/examples/examples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ async function test(cmd: string, path: string, args: string[] = [], timeout = 18
spawnedExample.kill("SIGKILL");
}
});
spawnedExample.stderr?.on("data", (data: string) => console.log(data.trim()));
spawnedExample.on("close", (code) => {
console.log("EXIT CODE", code);
if (!error) return res(true);
if (!error && !code) return res(true);
rej(`Test example "${file}" failed. ${error}`);
});
}).finally(() => {
Expand Down

0 comments on commit 94dfdfd

Please sign in to comment.