From fc5cc1fcf03f18e6249f15feda7637b530a78d8f Mon Sep 17 00:00:00 2001 From: johanblumenberg Date: Wed, 23 May 2018 19:19:04 +0200 Subject: [PATCH] Reduce noise in console output on test failures (#188) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8b4e991..29bb1d3 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ module.exports = opts => { done(); }) .catch(err => { - this.emit('error', new PluginError('gulp-mocha', err)); + this.emit('error', new PluginError('gulp-mocha', err.code > 0 ? 'There were test failures' : err)); done(); });