fix: exclude test files when dist test coverage report

This commit is contained in:
陈嘉涵
2017-08-28 14:55:39 +08:00
parent 561821d03a
commit 17779384ee
2 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ module.exports = function(config) {
reporters: ['spec', 'coverage'],
files: ['./index.js'],
preprocessors: {
'./index.js': ['webpack', 'sourcemap']
'./index.js': ['webpack', 'sourcemap'],
'test/unit/!(components)/**/*.vue': ['coverage']
},
webpack: getWebpackConfig(getTestFileName()),
webpackMiddleware: {