Skip to content

Commit 92d2f2e

Browse files
authored
feat: upgrade Jest and TypeScript dependencies to latest version
1 parent 7da93dc commit 92d2f2e

File tree

3 files changed

+1041
-1466
lines changed

3 files changed

+1041
-1466
lines changed

jest.config.js

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} **/
12
module.exports = {
2-
testEnvironment: "jsdom",
3-
globals: {
4-
'ts-jest': {
5-
tsconfig: './tsconfig.spec.json',
6-
diagnostics: true
7-
}
8-
},
3+
testEnvironment: 'jsdom',
94
transform: {
10-
'^.+\\.tsx?$': 'ts-jest'
5+
'^.+.tsx?$': [
6+
'ts-jest',
7+
{
8+
tsconfig: 'tsconfig.spec.json',
9+
},
10+
],
1111
},
12-
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
13-
coveragePathIgnorePatterns: [
14-
'<rootDir>/dist/',
15-
'<rootDir>/node_modules/',
16-
'<rootDir>/out-tsc/',
17-
'<rootDir>/test/'
18-
],
19-
moduleFileExtensions: [
20-
'ts',
21-
'tsx',
22-
'js',
23-
'jsx',
24-
'json',
25-
'node'
26-
]
2712
};

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@
4545
"test": "jest --watch"
4646
},
4747
"dependencies": {
48-
"tslib": "^2.4.0"
48+
"tslib": "^2.7.0"
4949
},
5050
"devDependencies": {
5151
"@rollup/plugin-commonjs": "^28.0.0",
5252
"@rollup/plugin-node-resolve": "^15.3.0",
5353
"@rollup/plugin-terser": "^0.4.4",
54-
"@types/jest": "^27.4.1",
55-
"@types/node": "^17.0.30",
54+
"@types/jest": "^29.5.13",
55+
"@types/node": "^22.7.4",
5656
"camelcase": "^8.0.0",
57-
"jest": "^28.0.3",
58-
"jest-environment-jsdom": "^28.0.2",
57+
"jest": "^29.7.0",
58+
"jest-environment-jsdom": "^29.7.0",
5959
"npm-run-all": "^4.1.5",
6060
"rollup": "^4.24.0",
61-
"ts-jest": "next",
61+
"ts-jest": "^29.2.5",
6262
"tslint": "^6.1.3",
63-
"typescript": "^4.6.4"
63+
"typescript": "^5.6.2"
6464
},
6565
"engines": {
6666
"node": ">= 12"

0 commit comments

Comments
 (0)