mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 04:08:34 +08:00
32 lines
694 B
JavaScript
32 lines
694 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?$': [
|
|
'babel-jest', {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
targets: {
|
|
node: true,
|
|
},
|
|
},
|
|
],
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: ['@vue/babel-plugin-jsx'],
|
|
},
|
|
],
|
|
},
|
|
moduleFileExtensions: ['vue', 'json', 'ts', 'tsx', 'js', 'json'],
|
|
}
|