vant/jest.config.js
2019-11-13 15:36:12 +08:00

19 lines
531 B
JavaScript

module.exports = {
moduleFileExtensions: ['js', 'jsx', 'vue', 'ts', 'tsx'],
transform: {
'\\.(vue)$': 'vue-jest',
'\\.(js|jsx|ts|tsx)$': '<rootDir>/test/jest.transform.js',
},
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx,vue}',
'!**/style/**',
'!**/demo/**',
'!**/locale/lang/**',
'!**/sku/**'
],
collectCoverage: true,
coverageReporters: ['html', 'lcov', 'text-summary'],
coverageDirectory: './test/coverage'
};