mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
26 lines
571 B
JavaScript
26 lines
571 B
JavaScript
var webpackConfig = require('./get-webpack-conf');
|
|
|
|
module.exports = function(config) {
|
|
config.set({
|
|
browsers: ['Chrome'],
|
|
frameworks: ['mocha', 'sinon-chai'],
|
|
reporters: ['spec', 'coverage'],
|
|
files: ['./index.js'],
|
|
preprocessors: {
|
|
'./index.js': ['webpack', 'sourcemap']
|
|
},
|
|
webpack: webpackConfig,
|
|
webpackMiddleware: {
|
|
noInfo: true
|
|
},
|
|
coverageReporter: {
|
|
dir: './coverage',
|
|
reporters: [
|
|
{ type: 'lcov', subdir: '.' },
|
|
{ type: 'text-summary' }
|
|
]
|
|
},
|
|
singleRun: false
|
|
});
|
|
};
|