mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
f9e192535f
* refactor: replace yarn with pnpm * chore: install pnpm * chore: disable cache * ignore pnpm-lock.yaml * resolve deps * setup pnpm
41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
module.exports = {
|
|
globals: {
|
|
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
|
|
'ts-jest': {
|
|
diagnostics: {
|
|
ignoreCodes: [151001],
|
|
},
|
|
},
|
|
},
|
|
testPathIgnorePatterns: ['/node_modules/', 'dist'],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.vue$': 'vue-jest',
|
|
'^.+\\.(t|j)sx?$': [
|
|
'babel-jest',
|
|
{
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
loose: true,
|
|
targets: {
|
|
node: true,
|
|
},
|
|
},
|
|
],
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: [
|
|
'@vue/babel-plugin-jsx',
|
|
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
],
|
|
},
|
|
],
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
|
// u can change this option to a more specific folder for test single component or util when dev
|
|
// for example, ['<rootDir>/packages/input']
|
|
roots: ['<rootDir>'],
|
|
}
|