Skip to content

Commit b29b7e5

Browse files
author
uid10804
committed
refactor(server): migrate ts-jest to remove warnings
1 parent e409e1c commit b29b7e5

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

packages/server/jest.config.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
module.exports = {
2-
globals: {
3-
'ts-jest': {
4-
tsConfig: './tsconfig.test.json',
5-
diagnostics: false,
6-
},
7-
},
82
preset: 'ts-jest',
93
testEnvironment: 'node',
10-
roots: ['<rootDir>/tests'],
4+
roots: [
5+
'<rootDir>/tests',
6+
],
117
transform: {
12-
'^.+\\.tsx?$': 'ts-jest',
8+
'^.+\\.tsx?$': [
9+
'ts-jest',
10+
{
11+
tsconfig: './tsconfig.test.json',
12+
diagnostics: false,
13+
},
14+
],
1315
},
14-
};
16+
}

packages/server/tsconfig.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"target": "es5",
5-
"lib": ["es2015", "dom"],
5+
"lib": ["es2015"],
66
"rootDir": "./",
77
"outDir": "lib",
88
"declaration": true,

0 commit comments

Comments
 (0)