react-toolbox/karma.conf.js

22 lines
536 B
JavaScript

require("babel-polyfill");
const webpackConfig = require('./webpack.config.test');
module.exports = function (config) {
config.set({
browsers: ['PhantomJS'],
singleRun: true,
frameworks: ['mocha'],
files: [
'./node_modules/phantomjs-polyfill/bind-polyfill.js',
'./node_modules/babel-polyfill/dist/polyfill.js',
'tests.webpack.js'
],
reporters: ['dots'],
preprocessors: {'tests.webpack.js': ['webpack']},
webpack: webpackConfig,
webpackServer: {
noInfo: true
}
});
};