We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82649bc commit 21f73e4Copy full SHA for 21f73e4
tests/legacy-cli/e2e_runner.ts
@@ -181,6 +181,8 @@ Promise.all([findFreePort(), findFreePort()])
181
} else {
182
console.log(colors.green('Done.'));
183
}
184
+
185
+ process.exitCode = 0;
186
} catch (err) {
187
if (err instanceof Error) {
188
console.log('\n');
@@ -202,16 +204,16 @@ Promise.all([findFreePort(), findFreePort()])
202
204
203
205
206
- throw err;
207
+ process.exitCode = 1;
208
} finally {
209
registryProcess.kill();
210
secureRegistryProcess.kill();
211
212
})
- .then(
- () => process.exit(0),
213
- () => process.exit(1),
214
- );
+ .catch((err) => {
+ console.error(colors.red(`Unkown Error: ${err}`));
215
216
+ });
217
218
async function runSteps(
219
run: (name: string) => Promise<void> | void,
0 commit comments