unit test init

This commit is contained in:
pangxie1991
2017-03-02 17:30:55 +08:00
parent bd24b22203
commit c1b215cb94
112 changed files with 18189 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
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
});
};