mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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: {
|
||||
'./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'],
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue