Skip to content

Commit

Permalink
test: added more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Sep 6, 2024
1 parent 5b2a67d commit cef92e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/examples/examples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ async function test(cmd: string, path: string, args: string[] = [], timeout = 36
let error = "";
const timeoutId = setTimeout(() => {
error = `Test timeout was reached after ${timeout} seconds.`;
console.log({
error,
connected: spawnedExample.connected,
code: spawnedExample.exitCode,
signal: spawnedExample.signalCode,
pid: spawnedExample.pid,
eventNames: spawnedExample.eventNames(),
});
spawnedExample.kill();
}, timeout * 1000);
return new Promise((res, rej) => {
Expand Down

0 comments on commit cef92e2

Please sign in to comment.