Skip to content

Commit

Permalink
更新babel配置
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuxian committed Feb 7, 2021
1 parent bbbc54f commit 67c522d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
},
testEnvironment: 'jsdom',
transform: {
'^.+\\.vue$': 'vue-jest',
// '^.+\\.vue$': 'vue-jest',
'^.+\\.(t|j)sx?$': [
'babel-jest', {
presets: [
Expand All @@ -21,7 +21,7 @@ module.exports = {
},
},
],
'@babel/preset-typescript',
// '@babel/preset-typescript',
],
plugins: [
'@vue/babel-plugin-jsx',
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
"cross-env": "^7.0.2",
"eslint": "^7.1.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^5.0.0",
"jest": "^26.6.3",
"ncp": "^2.0.0",
"prettier": "^2.2.1",
Expand Down

0 comments on commit 67c522d

Please sign in to comment.