Skip to content

Commit 932bb28

Browse files
authored
Merge branch 'master' into refactor-types
2 parents 9f33671 + 7ab1e91 commit 932bb28

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

jest.config.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { Config } from "@jest/types";
2+
import "ts-jest";
3+
4+
const config: Config.InitialOptions = {
5+
coverageThreshold: {
6+
global: {
7+
statements: 100,
8+
branches: 100,
9+
functions: 100,
10+
lines: 100,
11+
},
12+
},
13+
globals: {
14+
"ts-jest": {
15+
tsconfig: {
16+
esModuleInterop: true,
17+
},
18+
},
19+
},
20+
preset: "ts-jest",
21+
testEnvironment: "node",
22+
testRegex: /test\/.*\/.*.test.ts/u.source,
23+
};
24+
25+
export default config;

package.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,13 @@
2020
"validate:ts": "tsc --noEmit --noImplicitAny --target es2020 --esModuleInterop --moduleResolution node test/typescript-validate.ts"
2121
},
2222
"prettier": {},
23-
"jest": {
24-
"coverageThreshold": {
25-
"global": {
26-
"statements": 100,
27-
"branches": 100,
28-
"functions": 100,
29-
"lines": 100
30-
}
31-
},
32-
"globals": {
33-
"ts-jest": {
34-
"tsconfig": {
35-
"esModuleInterop": true
36-
}
37-
}
38-
},
39-
"preset": "ts-jest",
40-
"testEnvironment": "node",
41-
"testMatch": null,
42-
"testRegex": "test/.*/.*.test.ts"
43-
},
4423
"dependencies": {
4524
"@octokit/request-error": "^2.0.2",
4625
"aggregate-error": "^3.1.0",
4726
"debug": "^4.0.0"
4827
},
4928
"devDependencies": {
29+
"@jest/types": "^26.6.2",
5030
"@octokit/tsconfig": "^1.0.1",
5131
"@octokit/webhooks-definitions": "3.53.3",
5232
"@pika/pack": "^0.5.0",

0 commit comments

Comments
 (0)