module.exports = { moduleFileExtensions: ['js', 'vue'], transform: { '^.+\\.js$': '/node_modules/babel-jest', '.*\\.(vue)$': '/node_modules/vue-jest' }, moduleNameMapper: { '^packages/(.*)$': '/packages/$1' }, snapshotSerializers: ['/node_modules/jest-serializer-vue'], collectCoverageFrom: [ 'packages/**/*.{js,vue}', '!**/vant-css/**', '!**/demo/**', '!**/locale/lang/**', '!**/waterfall/**', '!**/sku/**', '!**/lazyload/**' ], collectCoverage: true, coverageReporters: ['html', 'lcov', 'text-summary'], coverageDirectory: './test/coverage' };