[build] collect coverage from ts file (#2700)

This commit is contained in:
neverland 2019-02-07 15:27:05 +08:00 committed by GitHub
parent c4a9ae5fdd
commit eb6f1b1df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ module.exports = {
}, },
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'], snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
collectCoverageFrom: [ collectCoverageFrom: [
'packages/**/*.{js,vue}', 'packages/**/*.{js,ts,tsx,vue}',
'!**/style/**', '!**/style/**',
'!**/demo/**', '!**/demo/**',
'!**/locale/lang/**', '!**/locale/lang/**',