-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liujunxiong
committed
Jun 4, 2019
1 parent
a630ff7
commit 6d31753
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
notify:false, //消息通知 | ||
"verbose": true, //指示是否应在运行期间报告每个单独的测试。执行后,所有错误仍将显示在底部。 | ||
"bail":true, //默认地,Jest 会运行所有的测试用例然后产出所有的错误到控制台中直至结束。bail 配置选项可以让 Jest 在遇到第一个失败后就停止继续运行测试用例。 | ||
"collectCoverage":true, //是否显示覆盖率 | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"node" | ||
], | ||
"moduleNameMapper":{ //一些不解析文件 导入到空 | ||
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js" | ||
}, | ||
verbose:true, //指示是否应在运行期间报告每个单独的测试。执行后,所有错误仍将显示在底部。 | ||
} |