mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
25 lines
714 B
JavaScript
25 lines
714 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
setupFiles: ['<rootDir>/test/jest.init.js'],
|
|
moduleFileExtensions: ['js', 'vue', 'ts', 'tsx'],
|
|
transform: {
|
|
'^.+\\.(js|ts|tsx)$': '<rootDir>/test/jest.transform.js',
|
|
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
|
|
},
|
|
moduleNameMapper: {
|
|
'^packages/(.*)$': '<rootDir>/packages/$1'
|
|
},
|
|
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
|
|
collectCoverageFrom: [
|
|
'packages/**/*.{js,ts,tsx,vue}',
|
|
'!**/style/**',
|
|
'!**/demo/**',
|
|
'!**/locale/lang/**',
|
|
'!**/sku/**',
|
|
'!**/waterfall/**'
|
|
],
|
|
collectCoverage: true,
|
|
coverageReporters: ['html', 'lcov', 'text-summary'],
|
|
coverageDirectory: './test/coverage'
|
|
};
|