Skip to content

Commit

Permalink
fix jest
Browse files Browse the repository at this point in the history
  • Loading branch information
sikanhe committed Dec 5, 2023
1 parent 7cba2e9 commit 92c6195
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};
4 changes: 2 additions & 2 deletions test-api/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Gql, ObjectType } from '../src/index.ts';
import { Gql, ObjectType } from '../src/index.js';

declare module '../src/types.ts' {
declare module '../src/types.js' {
interface Context {
contextContent: string;
}
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"allowImportingTsExtensions": true,
"skipLibCheck": true
},
"files": ["./src/index.ts", "./src/relay.ts"]
}

1 comment on commit 92c6195

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes have been published to npm.

yarn add -E [email protected]

Please sign in to comment.