Issue running karma task from gulp

前端 未结 10 2413
隐瞒了意图╮
隐瞒了意图╮ 2020-12-25 09:44

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         


        
10条回答
  •  醉酒成梦
    2020-12-25 10:11

    gulp.task('test', function(done) {
        karma.start({
            configFile: __dirname + '/karma.conf.js',
            singleRun: false 
        }, done);
    });
    

    passing singleRun: false argument will prevent the process from returning a value different of 0 (which would signify an error and exit gulp).

    Run with singleRun: true if you only launching your test from a command line, not part of a continuous integration suite.

提交回复
热议问题