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: { moduleNameMapper: {
'./js/(.*)': '<rootDir>/js/$1', './js/(.*)': '<rootDir>/js/$1',
}, },
transform: {}, transform: {
globals: { '^.+\\.tsx?$': ['ts-jest', {
extensionsToTreatAsEsm: ['.ts', '.js'],
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.json', tsconfig: '<rootDir>/tsconfig.json',
useESM: true, useESM: true,
}, }]
}, },
globals: {
extensionsToTreatAsEsm: ['.ts', '.js'],
}
}; };