fix: error propagation for tests

This commit is contained in:
cha0s 2024-02-17 10:06:09 -06:00
parent d03c72bc75
commit 65416c7156

View File

@ -164,9 +164,7 @@ export async function startServer({
process.stderr.on('drain', resolve); process.stderr.on('drain', resolve);
}); });
} }
// eslint-disable-next-line no-console throw new Error('\nserver process exited unexpectedly\n');
console.error('\nserver process exited unexpectedly\n');
process.exit(code);
} }
}); });
} }