mirror of
https://github.com/promptfoo/promptfoo.git
synced 2023-08-15 01:10:51 +03:00
22 lines
450 B
TypeScript
22 lines
450 B
TypeScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
import type { Config } from 'jest';
|
|
|
|
const config: Config = {
|
|
transform: {
|
|
'\\.[jt]sx?$': 'ts-jest',
|
|
},
|
|
globals: {
|
|
'ts-jest': {
|
|
useESM: true,
|
|
},
|
|
},
|
|
moduleNameMapper: {
|
|
'(.+)\\.js': '$1',
|
|
},
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
|
|
testPathIgnorePatterns: ['<rootDir>/examples'],
|
|
};
|
|
|
|
export default config;
|