update jest.config.ts

This commit is contained in:
albert
2025-07-28 13:50:50 +02:00
parent d62cbb7d4b
commit 3503f747ad

15
jest.config.ts Normal file
View File

@ -0,0 +1,15 @@
import type { Config } from 'jest';
const config: Config = {
preset: 'ts-jest',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts'],
transform: {
'^.+\\.ts$': ['ts-jest', { useESM: true }],
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};
export default config;