Replace globals with transform

This commit is contained in:
Nathan Bierema 2022-10-28 16:29:57 -04:00
parent f4bcf64323
commit 1251263e0d
12 changed files with 24 additions and 48 deletions

View File

@ -1,8 +1,6 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,9 +1,7 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
testEnvironment: 'jsdom', testEnvironment: 'jsdom',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,9 +1,7 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
testEnvironment: 'jsdom', testEnvironment: 'jsdom',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,8 +1,6 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -5,9 +5,7 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,8 +1,6 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -4,9 +4,7 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,8 +1,6 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -4,9 +4,7 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,8 +1,6 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -4,9 +4,7 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };

View File

@ -1,8 +1,6 @@
module.exports = { module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
globals: { transform: {
'ts-jest': { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
tsconfig: 'tsconfig.test.json',
},
}, },
}; };