Skip to content

Commit

Permalink
add yaml-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Xicheng Guo committed Aug 1, 2024
1 parent 25bb468 commit 37a31c2
Show file tree
Hide file tree
Showing 39 changed files with 6,727 additions and 2,066 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ lint/tmp/
!package.json
node_modules/
docs/.vitepress/cache
docs/.vitepress/dist
docs/.vitepress/dist
!tsconfig.json
coverage
15 changes: 15 additions & 0 deletions jest.config.ts
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: [], // 指定需要忽略的测试文件
};
Loading

0 comments on commit 37a31c2

Please sign in to comment.