fix(backend): don't console log config when running jest

This commit is contained in:
Florent Chehab 2020-05-12 22:55:29 +02:00
parent 3844d08bdd
commit b37c296542
No known key found for this signature in database
GPG Key ID: 9A0CE018889EA246

View File

@ -75,6 +75,9 @@ updateConfigFromStartArgs(cliArgs);
if (!isConfigValid(config, true)) {
throw new Error("Config is not valid. Check logs for details");
}
console.info(util.inspect(config, { showHidden: false, depth: null, colors: true }));
if (!process.env.JEST_WORKER_ID) {
console.info(util.inspect(config, { showHidden: false, depth: null, colors: true }));
}
module.exports = config;