mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
ac7c226196
* chore(project): bump @babel/cli from 7.12.1 to 7.15.4 * chore(project): bump @babel/core from 7.11.6 to 7.15.5 * chore(project): bump @babel/plugin-proposal-class-properties to 7.14.5 * chore(project): bump @babel/plugin-transform-runtime to 7.15.0 * chore(project): bump @babel/preset-env from 7.11.5 to 7.15.4 * chore(project): bump @babel/preset-typescript from 7.10.4 to 7.15.0 * chore(project): bump babel-loader from 8.1.0 to 8.2.2 * chore(project): bump babel-plugin-module-resolver from 4.0.0 to 4.1.0 * chore(project): bump @popperjs/core from 2.4.4 to 2.10.1 * chore(project): update babel.config.js * chore(project): update jest.config.js * chore(project): bump @typescript-eslint/eslint-plugin to 4.30.0 * chore(project): bump @typescript-eslint/parser from 4.29.3 to 4.30.0 * chore(project): bump algoliasearch from 4.4.0 to 4.10.5 * chore(project): bump transliteration from 2.1.11 to 2.2.0 * chore(project): bump typescript from 4.3.5 to 4.4.2 * chore(project): bump esbuild from 0.12.5 to 0.12.25 * chore(project): bump file-loader from 6.1.0 to 6.2.0 * chore(project): bump rollup from 2.28.2 to 2.56.3 * chore(project): bump rollup-plugin-esbuild from 4.2.3 to 4.5.0 * chore(project): bump sass from 1.37.0 to 1.39.0 * chore(project): move sass & typescript to devDependencies
40 lines
975 B
JavaScript
40 lines
975 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',
|
|
{
|
|
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>'],
|
|
}
|