I am trying to run karma tests from gulp task and I am getting this error:
Error: 1
at formatError (C:\\Users\\Tim\\AppData\\Roaming\\npm\\node_modules\\g
If you want to return with an error code, and want to see Karma's error output but not Gulp's (probably unrelated) stack trace:
gulp.task('test', function() {
karma.start({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, function(karmaExitStatus) {
if (karmaExitStatus) {
process.exit(1);
}
});
});