From 65416c71566eda1e8d6070f2e3af3835c6cfe539 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 17 Feb 2024 10:06:09 -0600 Subject: [PATCH] fix: error propagation for tests --- packages/server/test/helpers/start-server.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/server/test/helpers/start-server.js b/packages/server/test/helpers/start-server.js index a687398..4e1fb67 100644 --- a/packages/server/test/helpers/start-server.js +++ b/packages/server/test/helpers/start-server.js @@ -164,9 +164,7 @@ export async function startServer({ process.stderr.on('drain', resolve); }); } - // eslint-disable-next-line no-console - console.error('\nserver process exited unexpectedly\n'); - process.exit(code); + throw new Error('\nserver process exited unexpectedly\n'); } }); }