Skip to content

Commit 46f7f0d

Browse files
committed
test(): upgrade version jest v29.x
1 parent 0573db1 commit 46f7f0d

File tree

4 files changed

+540
-919
lines changed

4 files changed

+540
-919
lines changed

jest.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module.exports = {
22
moduleFileExtensions: ['js', 'json', 'ts'],
33
rootDir: '.',
4+
testEnvironment: 'node',
45
testMatch: ['<rootDir>/src/**/*spec.ts'],
56
transform: {
6-
'^.+\\.(t|j)s$': 'ts-jest',
7-
},
8-
collectCoverage: true,
9-
globals: {
10-
'ts-jest': {
11-
diagnostics: {
7+
'^.+\\.(t|j)s$': [
8+
'ts-jest',
9+
{
10+
tsconfig: '<rootDir>/tsconfig.app.json',
11+
isolatedModules: true,
1212
ignoreCodes: ['TS151001'],
1313
},
14-
tsconfig: '<rootDir>/tsconfig.app.json',
15-
},
14+
],
1615
},
16+
collectCoverage: true,
1717
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"@nrwl/tao": "^14.8.3",
9898
"@nrwl/workspace": "^14.8.3",
9999
"@types/express": "^4.17.1",
100-
"@types/jest": "^27.5.2",
100+
"@types/jest": "^29.1.2",
101101
"@types/multer": "^1.4.7",
102102
"@types/node": "^17.0.5",
103103
"@types/sequelize": "^4.28.9",
@@ -112,14 +112,14 @@
112112
"eslint-config-prettier": "^8.1.0",
113113
"eslint-plugin-prettier": "^4.0.0",
114114
"husky": "8.0.1",
115-
"jest": "^27.5.1",
115+
"jest": "^29.0.1",
116116
"lint-staged": "^10.5.4",
117117
"nx": "^14.8.3",
118118
"pactum": "^3.2.2",
119119
"prettier": "^2.2.1",
120120
"prisma": "^3.1.1",
121121
"supertest": "^6.1.3",
122-
"ts-jest": "^27.1.5",
122+
"ts-jest": "^29.0.3",
123123
"ts-loader": "^9.2.6",
124124
"ts-node": "^10.7.0",
125125
"tsconfig-paths": "^3.9.0",

0 commit comments

Comments
 (0)