Skip to content

Commit

Permalink
chore: exclude __mocks__ folders in tsconfig and jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanwww committed Sep 10, 2023
1 parent 98f3bcd commit be76df4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/app-common/tsconfigs/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
},
"include": ["../src/**/*"],
"exclude": [
"../src/**/__mockss__/**/*",
"../src/**/__tests__/**/*",
"../src/**/*.spec.ts",
"../src/**/*.spec.tsx",
"../src/**/*.test.ts",
"../src/**/*.test.tsx",
"../src/test.setup.ts"
]
}
3 changes: 1 addition & 2 deletions packages/app-common/tsconfigs/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
},
"include": ["../src/**/*"],
"exclude": [
"../src/**/__mocks__/**/*",
"../src/**/__tests__/**/*",
"../src/**/*.spec.ts",
"../src/**/*.spec.tsx",
"../src/**/*.test.ts",
"../src/**/*.test.tsx",
"../src/test.setup.ts"
]
}
1 change: 1 addition & 0 deletions packages/scripts/src/jest/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function getConfig(): Config {

collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/__mocks__/**/*.{ts,tsx}',
'!src/**/__tests__/**/*.{ts,tsx}',
'!src/**/*.{spec.test}.{ts,tsx}',
'!src/**/*.d.ts',
Expand Down

0 comments on commit be76df4

Please sign in to comment.