element-plus/jest.config.js
2020-07-31 13:59:39 +08:00

17 lines
405 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'],
},
moduleFileExtensions: ['vue', 'json', 'ts', 'tsx', 'js', 'json'],
}