regexper-static/karma.conf.js
2016-07-27 11:20:11 -04:00

31 lines
732 B
JavaScript

var _ = require('lodash'),
config = require('./config');
module.exports = function(karma) {
var globs = _.flatten([
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: ['Firefox'],
autoWatch: true,
singleRun: false,
browserify: _.extend({
configure: function(bundler) {
bundler.transform(require('./lib/canopy-transform'));
bundler.transform(require('babelify'));
}
}, config.browserify)
});
};