short-url/public/vendor/clipboard.js/karma.conf.js
Supan Adit Pratama b2e434483d first commit
2020-07-01 15:57:45 +07:00

31 lines
699 B
JavaScript
Vendored

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']
});
};