Skip to content

Commit 9339eb2

Browse files
authored
Update jest.config.js
1 parent c60bbf5 commit 9339eb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jest.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ module.exports = {
4444
],
4545
testEnvironment: 'jsdom',
4646
testURL: 'http://localhost',
47+
globals: {
48+
'ts-jest': {
49+
useESM: true,
50+
},
51+
},
4752
transform: {
4853
'^.+\\.(js|jsx|mjs)$': ['babel-jest', { configFile: paths.babelConfig }],
4954
'\\.(ts|tsx)$': 'ts-jest',
@@ -56,4 +61,4 @@ module.exports = {
5661
],
5762
moduleDirectories: paths.resolveModules,
5863
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'mjs']
59-
};
64+
};

0 commit comments

Comments
 (0)