mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
20 lines
461 B
JavaScript
20 lines
461 B
JavaScript
module.exports = {
|
|
globals: {
|
|
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
|
|
'ts-jest': {
|
|
diagnostics: {
|
|
ignoreCodes: [151001],
|
|
},
|
|
},
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.vue$': 'vue-jest',
|
|
'^.+\\.(t|j)sx?$': ['@swc-node/jest'],
|
|
},
|
|
moduleNameMapper: {
|
|
'^lodash-es$': 'lodash',
|
|
},
|
|
moduleFileExtensions: ['vue', 'json', 'ts', 'tsx', 'js', 'json'],
|
|
}
|