Skip to content

Commit

Permalink
fix jest in deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefyasser committed Oct 4, 2024
1 parent 8affa45 commit d706dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ module.exports = {
roots: ['<rootDir>/tests'],
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.tsx?$': ['ts-jest',
{
tsconfig: 'tsconfig.test.json',
}]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
Expand Down
2 changes: 1 addition & 1 deletion backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"types": ["jest"],
"types": [],
"outDir": "./dist",
"rootDir": "./src"
},
Expand Down

0 comments on commit d706dee

Please sign in to comment.