test(coverage): collect coverage from all js by default

This commit is contained in:
Clark Du 2018-03-29 16:15:44 +08:00
parent 894a2f31b6
commit 0fb9b54fe0
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -2,6 +2,7 @@ module.exports = {
testEnvironment: 'node', testEnvironment: 'node',
coverageDirectory: './coverage/', coverageDirectory: './coverage/',
collectCoverageFrom: [ collectCoverageFrom: [
'<rootDir>/**/*.js',
'!<rootDir>/lib/builder/webpack/plugins/vue/' '!<rootDir>/lib/builder/webpack/plugins/vue/'
], ],
setupTestFrameworkScriptFile: './test/utils/setup', setupTestFrameworkScriptFile: './test/utils/setup',