From 8fb85dce40e3eeeaf3ad74c30b4a291ab56953fc Mon Sep 17 00:00:00 2001 From: Palle Zingmark Date: Thu, 26 Oct 2017 23:19:27 +0200 Subject: [PATCH] Set groupOutputByFile to default true if missing in config --- src/core/done.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/done.js b/src/core/done.js index d64a2f29..3cf40b77 100644 --- a/src/core/done.js +++ b/src/core/done.js @@ -24,7 +24,7 @@ var done = function() { var msg = '' var groupedByFile = {} var msgGrouped - var group = this.config.groupOutputByFile || true + var group = ('groupOutputByFile' in this.config) ? this.config.groupOutputByFile : true var opts = this.config.reporterOptions || {} this.state.exitCode = getExitCode( this.cache.errs.length, this.cache.warnings.length, this.config.maxErrors, this.config.maxWarnings )