Skip to content

Commit 5a2f47c

Browse files
authored
Update jest.config.js
1 parent f58bbe1 commit 5a2f47c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jest.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ module.exports = {
4444
],
4545
testEnvironment: 'jsdom',
4646
testURL: 'http://localhost',
47-
globals: {
48-
'ts-jest': {
49-
useESM: true,
50-
},
51-
},
5247
transform: {
5348
'^.+\\.(js|jsx|mjs)$': ['babel-jest', { configFile: paths.babelConfig }],
54-
'\\.(ts|tsx)$': 'ts-jest',
49+
'\\.(ts|tsx)$': [
50+
'ts-jest',
51+
{
52+
useESM: true,
53+
},
54+
],
5555
'^.+\\.css$': '<rootDir>/scripts/config/jest/cssTransform.js',
5656
'^(?!.*\\.(js|jsx|mjs|css|json)$)':
5757
'<rootDir>/scripts/config/jest/fileTransform.js'

0 commit comments

Comments
 (0)