We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e383a0f commit 44ffb66Copy full SHA for 44ffb66
jest.config.js renamed to jest.config.ts
@@ -1,6 +1,7 @@
1
-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
-module.exports = {
3
- preset: 'ts-jest',
+import type { JestConfigWithTsJest } from 'ts-jest';
+
+const config: JestConfigWithTsJest = {
4
+ preset: 'ts-jest/presets/default-esm',
5
testEnvironment: 'node',
6
moduleNameMapper: {
7
'^openai$': '<rootDir>/src/index.ts',
@@ -14,3 +15,5 @@ module.exports = {
14
15
'<rootDir>/deno_tests/',
16
],
17
};
18
19
+export default config;
0 commit comments