You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
435 B
19 lines
435 B
1 year ago
|
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',
|
||
|
],
|
||
|
};
|