2014-11-25 02:44:50 +00:00
|
|
|
var _ = require('lodash'),
|
|
|
|
config = require('./config');
|
|
|
|
|
|
|
|
module.exports = function(karma) {
|
2014-12-05 00:11:30 +00:00
|
|
|
var globs = _.flatten([
|
|
|
|
require('es6ify').runtime, // Hack to get traceurRuntime in the build
|
|
|
|
config.globs.js,
|
|
|
|
config.globs.spec
|
|
|
|
]);
|
2014-11-25 02:44:50 +00:00
|
|
|
|
|
|
|
karma.set({
|
|
|
|
frameworks: ['browserify', 'jasmine'],
|
|
|
|
files: globs,
|
|
|
|
preprocessors: _(globs)
|
|
|
|
.zipObject()
|
|
|
|
.mapValues(_.constant(['browserify']))
|
|
|
|
.valueOf(),
|
|
|
|
reporters: ['progress', 'notify'],
|
|
|
|
colors: true,
|
|
|
|
logLevel: karma.LOG_INFO,
|
2014-12-05 00:11:30 +00:00
|
|
|
browsers: ['Chrome'],
|
2014-11-25 02:44:50 +00:00
|
|
|
autoWatch: true,
|
|
|
|
singleRun: false,
|
2014-11-30 19:39:56 +00:00
|
|
|
browserify: config.browserify
|
2014-11-25 02:44:50 +00:00
|
|
|
});
|
|
|
|
};
|