llm-info
Version:
Information on LLM models, context window token limit, output token limit, pricing and more
25 lines (21 loc) • 570 B
text/typescript
// jest.config.ts
import type { JestConfigWithTsJest } from 'ts-jest';
// https://kulshekhar.github.io/ts-jest/docs/guides/esm-support
const jestConfig: JestConfigWithTsJest = {
// [...]
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
// '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
useESM: true,
},
],
},
};
export default jestConfig;