Skip to content

Commit

Permalink
refactor: write jest config in typescript (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Dec 21, 2023
1 parent 4e5ed20 commit 1d595d6
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: {
'^@anthropic-ai/sdk$': '<rootDir>/src/index.ts',
Expand All @@ -14,3 +15,5 @@ module.exports = {
'<rootDir>/deno_tests/',
],
};

export default config;

0 comments on commit 1d595d6

Please sign in to comment.