element-plus/jest.config.js
Hanx 4e5b229308
Chore/eslint (#34)
* chore: add eslint support & some fixes

* chore: eslint basic support rules & some fixes; ignore yarn-error
2020-07-27 16:17:41 +08:00

17 lines
383 B
JavaScript

module.exports = {
preset: 'ts-jest',
globals: {
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
'ts-jest': {
diagnostics: {
ignoreCodes: [151001],
},
},
},
testEnvironment: 'jsdom',
transform: {
'^.+\\.vue$': 'vue-jest',
},
moduleFileExtensions: ['vue', 'json', 'ts', 'tsx', 'js', 'json'],
}