Skip to content

Commit ee1981e

Browse files
author
winddies
authored
修复测试文件报错 & sdk 包安全问题 (#462)
* 修复 jest 报错 & sdk package safe * 修改匹配规则 * 删除不需要的配置
1 parent 54557c0 commit ee1981e

File tree

3 files changed

+61
-5
lines changed

3 files changed

+61
-5
lines changed

jest.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
module.exports = {
2-
testURL: "http://localhost"
2+
transform: {
3+
".ts": 'ts-jest'
4+
},
5+
testRegex: '.+\\.test\\.ts$',
6+
testPathIgnorePatterns: [
7+
"esm",
8+
"lib",
9+
"node_modules"
10+
]
311
};

package-lock.json

Lines changed: 51 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"multiparty": "^4.1.3",
5858
"qiniu": "^7.3.1",
5959
"request": "^2.88.1",
60+
"ts-jest": "25.5.1",
6061
"ts-loader": "^6.2.1",
6162
"typedoc": "^0.17.7",
6263
"typescript": "^3.9.5",

0 commit comments

Comments
 (0)