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'); } }); }