Skip to content

Commit

Permalink
fix: avoid ab-end in Application.spec.ts test by using process.exitCo…
Browse files Browse the repository at this point in the history
…de instead of process.exit(). @tneer rules!
  • Loading branch information
bhamail committed Jul 29, 2021
1 parent 2e3571e commit 1e63108
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Application/Logger/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ export const shutDownLoggerAndExit = (code: number) => {
shutdown((err) => {
if (err) {
console.error(err);
process.exit(1);
}
process.exit(code);
process.exitCode = code;
});
};

0 comments on commit 1e63108

Please sign in to comment.