diff --git a/jest.config.js b/jest.config.ts similarity index 69% rename from jest.config.js rename to jest.config.ts index 5fc957640..f746f4bf9 100644 --- a/jest.config.js +++ b/jest.config.ts @@ -1,6 +1,7 @@ -/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ -module.exports = { - preset: 'ts-jest', +import type { JestConfigWithTsJest } from 'ts-jest'; + +const config: JestConfigWithTsJest = { + preset: 'ts-jest/presets/default-esm', testEnvironment: 'node', moduleNameMapper: { '^openai$': '/src/index.ts', @@ -14,3 +15,5 @@ module.exports = { '/deno_tests/', ], }; + +export default config;