Skip to content

Commit c72dc00

Browse files
chore(deps): update dependency @octokit/tsconfig to v2 (#860)
* chore(deps): update dependency @octokit/tsconfig to v2 * build: update configs for `@octokit/tsconfig` v2 * build: fixup jest config * build: don't use `@ts-expect-error` * build: use `module.exports` directly --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <webmaster@wolfy1339.com> Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com>
1 parent c0f10e6 commit c72dc00

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

jest.config.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Config } from "@jest/types";
1+
import type { Config } from "@jest/types";
22
import "ts-jest";
33

44
const config: Config.InitialOptions = {
@@ -13,16 +13,14 @@ const config: Config.InitialOptions = {
1313
transform: {
1414
"^.+\\.tsx?$": ["ts-jest",
1515
{
16-
tsconfig: {
17-
esModuleInterop: true,
18-
},
16+
tsconfig: "test/tsconfig.json",
1917
}
2018
],
2119
},
22-
preset: "ts-jest",
2320
restoreMocks: true,
2421
testEnvironment: "node",
2522
testRegex: /test\/.*\/.*.test.ts/u.source,
2623
};
2724

28-
export default config;
25+
// We have to use a CommonJS export here due to `verbatimModuleSyntax`
26+
module.exports = config;

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"devDependencies": {
4949
"@jest/types": "^29.0.0",
50-
"@octokit/tsconfig": "^1.0.1",
50+
"@octokit/tsconfig": "^2.0.0",
5151
"@octokit/webhooks-schemas": "7.0.3",
5252
"@types/jest": "^29.0.0",
5353
"@types/json-schema": "^7.0.7",

test/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "..",
33
"compilerOptions": {
4-
"esModuleInterop": true
4+
"verbatimModuleSyntax": false
55
},
66
"include": ["**/*.ts"]
77
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99
},
1010
"compilerOptions": {
11+
"esModuleInterop": true,
1112
"declaration": true,
1213
"outDir": "pkg/dist-types",
1314
"emitDeclarationOnly": true,

0 commit comments

Comments
 (0)