In your gulpfile, replace "throw err" with the error callback in your gulp test task with "this.emit (" end ")".
gulp.task('test', function() { return gulp.src(testFiles) .pipe(karma({ configFile: 'karma.conf.js', action: 'run' })) .on('error', function(err) { throw err; }); });
so your test task now looks like this:
gulp.task('test', function() { return gulp.src(testFiles) .pipe(karma({ configFile: 'karma.conf.js', action: 'run' })) .on('error', function(err) { this.emit('end'); }); });
Olatunde garuba
source share