From 2610df7347756f1efc66b06c148c759583719a2a Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 8 Feb 2019 16:56:23 +0900 Subject: [PATCH] Supress logs during test --- src/misc/logger.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/misc/logger.ts b/src/misc/logger.ts index b47529b3b..1d159fb6a 100644 --- a/src/misc/logger.ts +++ b/src/misc/logger.ts @@ -21,6 +21,7 @@ export default class Logger { private log(level: string, message: string, important = false, subDomains: string[] = []): void { if (program.quiet) return; + if (process.env.NODE_ENV === 'test') return; const domain = this.color ? chalk.keyword(this.color)(this.domain) : chalk.white(this.domain); const domains = [domain].concat(subDomains); if (this.parentLogger) {