Skip to content

Commit

Permalink
refactor: write jest config in typescript (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Dec 20, 2023
1 parent e383a0f commit eb6ceeb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -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$': '<rootDir>/src/index.ts',
Expand All @@ -14,3 +15,5 @@ module.exports = {
'<rootDir>/deno_tests/',
],
};

export default config;

0 comments on commit eb6ceeb

Please sign in to comment.