-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(server): migrate ts-jest to remove warnings
- Loading branch information
uid10804
committed
Aug 18, 2023
1 parent
e409e1c
commit b29b7e5
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
module.exports = { | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: './tsconfig.test.json', | ||
diagnostics: false, | ||
}, | ||
}, | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
roots: ['<rootDir>/tests'], | ||
roots: [ | ||
'<rootDir>/tests', | ||
], | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: './tsconfig.test.json', | ||
diagnostics: false, | ||
}, | ||
], | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters