Skip to content

Commit d7caaff

Browse files
committed
build(deps): Updated to latest jest & ts-jest
1 parent f0890e5 commit d7caaff

File tree

3 files changed

+893
-1322
lines changed

3 files changed

+893
-1322
lines changed

jest.config.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
import type { Config } from '@jest/types';
1+
import { JestConfigWithTsJest } from 'ts-jest/dist/types';
22

3-
const config: Config.InitialOptions = {
3+
const config: JestConfigWithTsJest = {
44
testEnvironment: "node",
55
preset: 'ts-jest',
66
testRegex: '.*(test|spec)\\.tsx?$',
77
moduleFileExtensions: [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node' ],
8-
globals: {
9-
'ts-jest': {
10-
tsconfig: '<rootDir>/test/tsconfig.json'
11-
}
8+
transform: {
9+
'^.+\\.tsx?$': [
10+
'ts-jest',
11+
{
12+
tsconfig: '<rootDir>/test/tsconfig.json'
13+
}
14+
]
1215
},
1316
modulePaths: [ "<rootDir>" ],
1417
roots: [ '<rootDir>' ],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151
"register.js"
5252
],
5353
"devDependencies": {
54-
"@types/jest": "^26.0.24",
54+
"@types/jest": "^29.2.0",
5555
"@types/minimatch": "^3.0.5",
5656
"@types/node": "^16.4.10",
57-
"jest": "^27.0.6",
57+
"jest": "^29.2.1",
5858
"prettier": "^2.3.2",
5959
"rimraf": "^3.0.2",
6060
"standard-version": "^9.3.1",
6161
"ts-expose-internals": "^4.3.2",
62-
"ts-jest": "^27.0.4",
62+
"ts-jest": "^29.0.3",
6363
"ts-node": "^10.1.0",
6464
"ts-patch": "^1.4.2",
6565
"typescript": "^4.3.5"

0 commit comments

Comments
 (0)