fix(cli): jest transform config

This commit is contained in:
陈嘉涵
2019-12-13 14:25:53 +08:00
parent 40992bccfd
commit c2a27d177e
2 changed files with 2 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ module.exports = {
'\\.(vue)$': 'vue-jest',
'\\.(js|jsx|ts|tsx)$': 'babel-jest'
},
transformIgnorePatterns: ['node_modules/(?!(vant|@babel\\/runtime)/)'],
transformIgnorePatterns: ['/node_modules/(?!(@vant/cli))/'],
snapshotSerializers: ['jest-serializer-vue'],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx,vue}',