From df29249d5c64ef7d677b504ef208fcacdfeced54 Mon Sep 17 00:00:00 2001 From: Case Nelson Date: Sun, 2 Oct 2016 21:55:46 -0600 Subject: [PATCH] gulp test hangs - https://github.com/sindresorhus/gulp-mocha/issues/54 --- gulpfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index c5641c7..1c42349 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -20,6 +20,10 @@ if ( process.env.NODE_ENV !== 'production' ) { tldr = require('mocha-tldr-reporter') } +gulp.doneCallback = function (err) { + process.exit(err ? 1 : 0); +}; + gulp.task( 'default', [ 'checkstyle', 'test', 'watch' ] ) gulp.task( 'test', function() {