Skip to content

Commit

Permalink
chore: 加入静态资源transform
Browse files Browse the repository at this point in the history
  • Loading branch information
yatessss committed Apr 19, 2023
1 parent ebc740c commit 21b0037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = {
tsconfig: './tsconfig.test.json',
},
],
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
},

// 定义了忽略进行 jest 执行的依赖包
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"eslint-plugin-import": "^2.22.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-transform-stub": "^2.0.0",
"lint-staged": "^13.1.0",
"prettier": "^2.8.3",
"prismjs": "^1.29.0",
Expand Down

0 comments on commit 21b0037

Please sign in to comment.