feat(cli): update default jest config

This commit is contained in:
陈嘉涵 2019-12-24 14:22:16 +08:00
parent 99a8ff7b6b
commit 4f0b8f3e64

View File

@ -20,12 +20,8 @@ const DEFAULT_CONFIG = {
},
transformIgnorePatterns: ['/node_modules/(?!(@vant/cli))/'],
snapshotSerializers: ['jest-serializer-vue'],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx,vue}',
'!**/style/**',
'!**/demo/**'
],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx,vue}', '!**/demo/**'],
coverageReporters: ['html', 'lcov', 'text-summary'],
coverageDirectory: './test/coverage'
};