react-toolbox/karma.conf.js

22 lines
541 B
JavaScript
Raw Normal View History

2015-12-24 09:58:43 +03:00
require('babel-polyfill');
const webpackConfig = require('./webpack.config.test');
2015-09-21 11:11:20 +03:00
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',
2017-01-26 20:05:32 +03:00
'tests.webpack.js',
2015-09-21 11:11:20 +03:00
],
reporters: ['dots'],
2017-01-26 20:05:32 +03:00
preprocessors: { 'tests.webpack.js': ['webpack'] },
webpack: webpackConfig,
2015-09-21 11:11:20 +03:00
webpackServer: {
2017-01-26 20:05:32 +03:00
noInfo: true,
},
2015-09-21 11:11:20 +03:00
});
};