042228d09f
Apparently traceurRuntime doesn't work in PhantomJS
27 lines
631 B
JavaScript
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
|
|
});
|
|
};
|