Skip to content

Commit

Permalink
test: fix coverage and test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Jan 16, 2024
1 parent db36ab9 commit 86e325d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const config: Config.InitialOptions = {
'^@form-render-react/(.*)': '<rootDir>/packages/form-render-react/src/$1',
},
roots: ['<rootDir>/test/'],
testPathIgnorePatterns: ['<rootDir>/test/@.+/'],
// 排查 test 目录以 @ 符号开头的目录,如 @helpers、core-react/@helpers
testPathIgnorePatterns: ['<rootDir>/test/(.+/)?@.+/'],
// 覆盖率同样的规则
coveragePathIgnorePatterns: ['<rootDir>/test/(.+/)?@.+/'],
setupFilesAfterEnv: ['<rootDir>/test/@helpers/jest-setup.ts'],
clearMocks: true,
maxConcurrency: 10,
Expand Down

0 comments on commit 86e325d

Please sign in to comment.