Resolve jest config deprecations

This commit is contained in:
Liam 2024-04-15 08:38:31 -04:00
parent 078957941b
commit c8f9e7e565

View file

@ -30,12 +30,13 @@ export default {
moduleNameMapper: {
'./js/(.*)': '<rootDir>/js/$1',
},
transform: {},
globals: {
extensionsToTreatAsEsm: ['.ts', '.js'],
'ts-jest': {
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: '<rootDir>/tsconfig.json',
useESM: true,
},
}]
},
globals: {
extensionsToTreatAsEsm: ['.ts', '.js'],
}
};