Skip to content

Commit

Permalink
refactor(server): migrate ts-jest to remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
uid10804 committed Aug 18, 2023
1 parent e409e1c commit b29b7e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions packages/server/jest.config.js
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,
},
],
},
};
}
2 changes: 1 addition & 1 deletion packages/server/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es5",
"lib": ["es2015", "dom"],
"lib": ["es2015"],
"rootDir": "./",
"outDir": "lib",
"declaration": true,
Expand Down

0 comments on commit b29b7e5

Please sign in to comment.