mirror of
https://github.com/supanadit/short-url.git
synced 2024-11-14 12:32:21 +00:00
31 lines
699 B
JavaScript
31 lines
699 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'],
|
||
|
|
||
|
files: [
|
||
|
'src/**/*.js',
|
||
|
'test/**/*.js',
|
||
|
],
|
||
|
|
||
|
preprocessors: {
|
||
|
'src/**/*.js': ['webpack'],
|
||
|
'test/**/*.js': ['webpack']
|
||
|
},
|
||
|
|
||
|
webpack: {
|
||
|
module: webpackConfig.module,
|
||
|
plugins: webpackConfig.plugins
|
||
|
},
|
||
|
|
||
|
webpackMiddleware: {
|
||
|
stats: 'errors-only'
|
||
|
},
|
||
|
|
||
|
browsers: ['ChromeHeadless']
|
||
|
});
|
||
|
};
|