From c2a568c5923ce330708fec45c35aea08c879c89f Mon Sep 17 00:00:00 2001 From: Ole Wieners Date: Wed, 11 Dec 2024 14:17:36 +0100 Subject: [PATCH] Stop waiting for timeout in UI tests with faulty config --- frontend/tests/util/isolation.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/tests/util/isolation.ts b/frontend/tests/util/isolation.ts index ac99411f3..da14598c3 100644 --- a/frontend/tests/util/isolation.ts +++ b/frontend/tests/util/isolation.ts @@ -61,6 +61,10 @@ export const test = base.extend({ ["serve", "--config", configPath], // { stdio: "inherit" } ); + tobiraProcess.addListener("exit", code => { + throw new Error(`Failed to start Tobira process (exit code ${code}). ` + + 'Invalid config? (Hint: try setting stdio: "inherit" in isolation.ts)'); + }); await waitPort({ port, interval: 10, output: "silent" });