You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
762 B
32 lines
762 B
3 years ago
|
var webpackConfig = require('./webpack.config.js');
|
||
|
|
||
|
module.exports = function (karma) {
|
||
|
karma.set({
|
||
|
plugins: ['karma-webpack', 'karma-chai', 'karma-sinon', 'karma-mocha', 'karma-phantomjs-launcher'],
|
||
|
|
||
|
frameworks: ['chai', 'sinon', 'mocha'],
|
||
|
|
||
|
files: [
|
||
|
'src/**/*.js',
|
||
|
'test/**/*.js',
|
||
|
'./node_modules/phantomjs-polyfill/bind-polyfill.js'
|
||
|
],
|
||
|
|
||
|
preprocessors: {
|
||
|
'src/**/*.js': ['webpack'],
|
||
|
'test/**/*.js': ['webpack']
|
||
|
},
|
||
|
|
||
|
webpack: {
|
||
|
module: webpackConfig.module,
|
||
|
plugins: webpackConfig.plugins
|
||
|
},
|
||
|
|
||
|
webpackMiddleware: {
|
||
|
stats: 'errors-only'
|
||
|
},
|
||
|
|
||
|
browsers: ['PhantomJS']
|
||
|
});
|
||
|
};
|