mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +00:00
chore: update jest config (#4994)
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
setupFiles: ['<rootDir>/test/jest.init.js'],
|
||||
moduleFileExtensions: ['js', 'vue', 'ts', 'tsx'],
|
||||
moduleFileExtensions: ['js', 'jsx', 'vue', 'ts', 'tsx'],
|
||||
transform: {
|
||||
'^.+\\.(js|ts|tsx)$': '<rootDir>/test/jest.transform.js',
|
||||
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^src/(.*)$': '<rootDir>/src/$1'
|
||||
'\\.(vue)$': 'vue-jest',
|
||||
'\\.(js|jsx|ts|tsx)$': '<rootDir>/test/jest.transform.js',
|
||||
},
|
||||
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{js,ts,tsx,vue}',
|
||||
'src/**/*.{js,jsx,ts,tsx,vue}',
|
||||
'!**/style/**',
|
||||
'!**/demo/**',
|
||||
'!**/locale/lang/**',
|
||||
|
Reference in New Issue
Block a user