Skip to content

Commit

Permalink
fix: exclude .js files from ts-jest (resolves #468 )
Browse files Browse the repository at this point in the history
ts-jest should not process javascript files, as it can lead to extreme performance drop.
Check issue #468 and also issue kulshekhar/ts-jest#4294
  • Loading branch information
LoganTann authored Oct 4, 2024
1 parent 4feaeed commit 8d0f070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const config: Config.InitialOptions = {
modulePaths: ['.'],
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: ['src/server/**/*.(t|j)s'],
collectCoverageFrom: ['src/server/**/*.ts'],
coveragePathIgnorePatterns: ['src/server/console', 'src/server/migration'],
coverageDirectory: 'coverage',
testEnvironment: 'node',
Expand Down

0 comments on commit 8d0f070

Please sign in to comment.