19 lines
435 B
JavaScript
19 lines
435 B
JavaScript
export default {
|
|
testEnvironment: 'node',
|
|
preset: 'ts-jest/presets/default-esm',
|
|
transform: {
|
|
'^.+\\.m?[tj]s?$': ['ts-jest', { useESM: true }],
|
|
},
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.(m)?js$': '$1',
|
|
},
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(m)?ts$',
|
|
coverageDirectory: 'coverage',
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'src/**/*.mts',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/*.d.mts',
|
|
],
|
|
};
|