mirror of
https://gitee.com/la-vie/console-pro-free.git
synced 2024-12-25 19:29:16 +00:00
37 lines
719 B
JavaScript
37 lines
719 B
JavaScript
var webpackConfig = require('./webpack.config.js');
|
|
|
|
module.exports = function (karma) {
|
|
karma.set({
|
|
plugins: [
|
|
'karma-webpack',
|
|
'karma-chai',
|
|
'karma-sinon',
|
|
'karma-mocha',
|
|
'karma-chrome-launcher',
|
|
],
|
|
|
|
frameworks: ['chai', 'sinon', 'mocha', 'webpack'],
|
|
|
|
files: [
|
|
{ pattern: 'src/**/*.js', watched: false },
|
|
{ pattern: 'test/**/*.js', watched: false },
|
|
],
|
|
|
|
preprocessors: {
|
|
'src/**/*.js': ['webpack'],
|
|
'test/**/*.js': ['webpack'],
|
|
},
|
|
|
|
webpack: {
|
|
module: webpackConfig.module,
|
|
plugins: webpackConfig.plugins,
|
|
},
|
|
|
|
webpackMiddleware: {
|
|
stats: 'errors-only',
|
|
},
|
|
|
|
browsers: ['ChromeHeadless'],
|
|
});
|
|
};
|