regexper-static/karma.conf.js
Jeff Avallone 042228d09f Switching Karma test browser to Chrome
Apparently traceurRuntime doesn't work in PhantomJS
2014-12-04 19:11:30 -05:00

27 lines
631 B
JavaScript

var _ = require('lodash'),
config = require('./config');
module.exports = function(karma) {
var globs = _.flatten([
require('es6ify').runtime, // Hack to get traceurRuntime in the build
config.globs.js,
config.globs.spec
]);
karma.set({
frameworks: ['browserify', 'jasmine'],
files: globs,
preprocessors: _(globs)
.zipObject()
.mapValues(_.constant(['browserify']))
.valueOf(),
reporters: ['progress', 'notify'],
colors: true,
logLevel: karma.LOG_INFO,
browsers: ['Chrome'],
autoWatch: true,
singleRun: false,
browserify: config.browserify
});
};