From 519739b4a849495ccd817ca2bb0ebdfc9cc0f082 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 24 Sep 2019 17:46:53 +0100 Subject: [PATCH] build: Lower default Karma logLevel during local development MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Follows-up fa63a70ae90 which enabled this for CI to investigate a Jenkins-specific issue, but it makes for a very noisy and visually unpleasant local experience because these Karma lines interweave with the structural output from the qunit/karma reporter. With this change applied, the local experience from 'npm run qunit' has clean output again like so: ``` … mediawiki.storage ✔ set/get(Object) with storage support ✔ set/get(Object) with storage methods disabled ✔ set/get(Object) with storage object disabled mediawiki.template ✔ add ✔ compile ✔ get Finished in 13 secs SUMMARY: ✔ 440 tests completed ``` Change-Id: I21555468ed30ca3a2220eba1d8a78cc140a13399 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8115ea2aec..9615330e8c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -117,7 +117,7 @@ module.exports = function ( grunt ) { included: true, served: false } ], - logLevel: 'DEBUG', + logLevel: ( process.env.ZUUL_PROJECT ? 'DEBUG' : 'INFO' ), frameworks: [ 'qunit' ], reporters: [ 'mocha' ], singleRun: true, -- 2.20.1