Skip to content

Commit

Permalink
Updated config ⚙️
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Sep 9, 2024
1 parent 823c2c4 commit ef13c1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { JestConfigWithTsJest } from 'ts-jest'
const config: JestConfigWithTsJest = {
clearMocks: true,
collectCoverageFrom: [
'src/**/*.ts',
'src/**/*',
// TODO: Write tests for these files when they are less likely to change
'!src/index.ts',
'!src/linters/index.ts',
Expand All @@ -25,6 +25,9 @@ const config: JestConfigWithTsJest = {
'^@Types(.*)$': '<rootDir>/src/types$1',
'^@Utils(.*)$': '<rootDir>/src/utils$1',
},
modulePathIgnorePatterns: [
'<rootDir>/lib/',
],
setupFilesAfterEnv: [
'<rootDir>/jest-config/setup.ts',
],
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
"target": "ESNext"
},
"include": [
"config/**/*.ts",
"jest-config/types.d.ts",
"src/**/*.ts",
"src/types/global.d.ts"
"config",
"jest-config",
"src"
],
"exclude": ["node_modules"]
}

0 comments on commit ef13c1f

Please sign in to comment.