We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58bbe1 commit 5a2f47cCopy full SHA for 5a2f47c
jest.config.js
@@ -44,14 +44,14 @@ module.exports = {
44
],
45
testEnvironment: 'jsdom',
46
testURL: 'http://localhost',
47
- globals: {
48
- 'ts-jest': {
49
- useESM: true,
50
- },
51
52
transform: {
53
'^.+\\.(js|jsx|mjs)$': ['babel-jest', { configFile: paths.babelConfig }],
54
- '\\.(ts|tsx)$': 'ts-jest',
+ '\\.(ts|tsx)$': [
+ 'ts-jest',
+ {
+ useESM: true,
+ },
+ ],
55
'^.+\\.css$': '<rootDir>/scripts/config/jest/cssTransform.js',
56
'^(?!.*\\.(js|jsx|mjs|css|json)$)':
57
'<rootDir>/scripts/config/jest/fileTransform.js'
0 commit comments