Skip to content

Commit 44ffb66

Browse files
committed
refactor: write jest config in typescript (#588)
1 parent e383a0f commit 44ffb66

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

jest.config.js renamed to jest.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2-
module.exports = {
3-
preset: 'ts-jest',
1+
import type { JestConfigWithTsJest } from 'ts-jest';
2+
3+
const config: JestConfigWithTsJest = {
4+
preset: 'ts-jest/presets/default-esm',
45
testEnvironment: 'node',
56
moduleNameMapper: {
67
'^openai$': '<rootDir>/src/index.ts',
@@ -14,3 +15,5 @@ module.exports = {
1415
'<rootDir>/deno_tests/',
1516
],
1617
};
18+
19+
export default config;

0 commit comments

Comments
 (0)