Upgrade to ESM and upgrade node fetch

This commit is contained in:
Salman Muin Kayser Chishti 2025-10-14 14:07:58 +01:00
parent 2028fbc5c2
commit 100690a6a6
20 changed files with 16193 additions and 7907 deletions

View file

@ -1,11 +1,18 @@
module.exports = {
export default {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
extensionsToTreatAsEsm: ['.ts'],
globals: {
'ts-jest': {
useESM: true
}
},
transform: {
'^.+\\.ts$': 'ts-jest'
},
preset: 'ts-jest/presets/default-esm',
verbose: true
}