mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
Resolve jest config deprecations
This commit is contained in:
parent
078957941b
commit
c8f9e7e565
1 changed files with 6 additions and 5 deletions
|
@ -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'],
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue