From cef92e2eba8630809c196380a25904f28e882911 Mon Sep 17 00:00:00 2001 From: Marcin Gordel Date: Fri, 6 Sep 2024 21:20:06 +0200 Subject: [PATCH] test: added more logs --- tests/examples/examples.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/examples/examples.test.ts b/tests/examples/examples.test.ts index 4f088da53..de4758a4c 100644 --- a/tests/examples/examples.test.ts +++ b/tests/examples/examples.test.ts @@ -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) => {