Archived
0
0
Fork 0

fix(logging): fix tests exiting out of program

This commit is contained in:
Daryl Ronningen 2021-06-19 15:58:58 -07:00
parent 1ae3f8de10
commit 121a62b37e
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -142,5 +142,6 @@ export function fatal(message: string, scope?: ELoggingScope): void {
console.log(chalk`{grey (${date})} {red.bold.underline [FATAL]}: {red.underline ${val}}`);
});
process.exit(1);
if(config.util.getEnv('NODE_CONFIG_ENV') !== 'tests')
process.exit(1);
}