-
Notifications
You must be signed in to change notification settings - Fork 152
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
Xicheng Guo
committed
Aug 1, 2024
1 parent
25bb468
commit 37a31c2
Showing
39 changed files
with
6,727 additions
and
2,066 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
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,15 @@ | ||
export default { | ||
testTimeout: 30000, // 设置测试超时时间 | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
collectCoverage: true, // 开启测试覆盖率 | ||
coverageDirectory: "coverage", // 指定覆盖率报告输出目录 | ||
collectCoverageFrom: [ | ||
// 指定需要收集覆盖率的文件 | ||
"scripts/**/*.ts", // 包括 src 目录下所有的 TypeScript 文件 | ||
"!scripts/**/*.d.ts", // 排除 TypeScript 声明文件 | ||
"!scripts/__tests__/**/*.ts", | ||
], | ||
testMatch: ["<rootDir>/scripts/__tests__/*.test.ts"], // 指定测试文件的匹配规则 | ||
testPathIgnorePatterns: [], // 指定需要忽略的测试文件 | ||
}; |
Oops, something went wrong.