Skip to content

Commit 355445a

Browse files
committed
chore: Upgrade jest and ts-jest
1 parent ac82bf6 commit 355445a

File tree

4 files changed

+1129
-695
lines changed

4 files changed

+1129
-695
lines changed

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { createDefaultPreset } from 'ts-jest';
2+
3+
export default {
4+
...createDefaultPreset(),
5+
coverageProvider: 'v8',
6+
coverageThreshold: {
7+
global: {
8+
branches: 100,
9+
functions: 100,
10+
lines: 100,
11+
statements: 0,
12+
},
13+
},
14+
};

package.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,6 @@
1515
"tsc": "tsc",
1616
"watch": "tsc --watch"
1717
},
18-
"jest": {
19-
"coverageDirectory": "<rootDir>/../coverage",
20-
"coverageThreshold": {
21-
"global": {
22-
"branches": 100,
23-
"functions": 100,
24-
"lines": 100,
25-
"statements": 0
26-
}
27-
},
28-
"preset": "ts-jest",
29-
"rootDir": "src",
30-
"testEnvironment": "node"
31-
},
3218
"repository": {
3319
"type": "git",
3420
"url": "git+https://github.com/expo/expo-server-sdk-node.git"
@@ -55,11 +41,11 @@
5541
"@types/promise-retry": "1.1.6",
5642
"eslint": "9.26.0",
5743
"eslint-config-universe": "15.0.3",
58-
"jest": "29.7.0",
44+
"jest": "30.0.3",
5945
"jiti": "2.4.2",
6046
"msw": "2.10.2",
6147
"prettier": "3.5.3",
62-
"ts-jest": "29.3.2",
48+
"ts-jest": "29.4.0",
6349
"typescript": "5.8.3"
6450
},
6551
"packageManager": "[email protected]"

tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"outDir": "./build",
66
"rootDir": "./src"
77
},
8-
"exclude": ["node_modules", "**/__mocks__", "**/__tests__", "build", "coverage"]
8+
"include": ["src"],
9+
"exclude": ["src/__tests__"]
910
}

0 commit comments

Comments
 (0)