2
     var karma = require('karma');

     gulp.task('test', function(cb) {
           var server = new karma.Server({
           configFile:require('path').resolve('karma.conf.js'),
           singleRun: true
      }, cb);
     server.start();
         });

The above is my gulp code and the karma.config.js is in the root(where gulpfile is present).

I get the error 'karma.config.js' doesn't exist!

Just can't fix the issue

I did try these - gulp and karma, file karma.conf.js does not exist

Any thoughts?

Community
  • 1
  • 1
Spdexter
  • 923
  • 1
  • 7
  • 19

0 Answers0