Skip to content

Commit

Permalink
chore(deps): update dependency @octokit/tsconfig to v2 (#860)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: wolfy1339 <[email protected]>
  • Loading branch information
3 people authored Jun 13, 2023
1 parent c0f10e6 commit c72dc00
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
10 changes: 4 additions & 6 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config } from "@jest/types";
import type { Config } from "@jest/types";
import "ts-jest";

const config: Config.InitialOptions = {
Expand All @@ -13,16 +13,14 @@ const config: Config.InitialOptions = {
transform: {
"^.+\\.tsx?$": ["ts-jest",
{
tsconfig: {
esModuleInterop: true,
},
tsconfig: "test/tsconfig.json",
}
],
},
preset: "ts-jest",
restoreMocks: true,
testEnvironment: "node",
testRegex: /test\/.*\/.*.test.ts/u.source,
};

export default config;
// We have to use a CommonJS export here due to `verbatimModuleSyntax`
module.exports = config;
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"devDependencies": {
"@jest/types": "^29.0.0",
"@octokit/tsconfig": "^1.0.1",
"@octokit/tsconfig": "^2.0.0",
"@octokit/webhooks-schemas": "7.0.3",
"@types/jest": "^29.0.0",
"@types/json-schema": "^7.0.7",
Expand Down
2 changes: 1 addition & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "..",
"compilerOptions": {
"esModuleInterop": true
"verbatimModuleSyntax": false
},
"include": ["**/*.ts"]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
}
},
"compilerOptions": {
"esModuleInterop": true,
"declaration": true,
"outDir": "pkg/dist-types",
"emitDeclarationOnly": true,
Expand Down

0 comments on commit c72dc00

Please sign in to comment.