Skip to content

Commit e45c669

Browse files
committed
Fix Jest tests
1 parent 7eed8d6 commit e45c669

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ const nodeVersion = parseInt(process.version.slice(1), 10);
22

33
module.exports = {
44
preset: 'ts-jest/presets/js-with-ts',
5+
globals: {
6+
'ts-jest': {
7+
tsconfig: 'tsconfig.jest.json',
8+
},
9+
},
510
testEnvironment: 'jsdom',
611
setupFiles: ['<rootDir>/node_package/tests/jest.setup.js'],
712
// React Server Components tests are compatible with React 19

tsconfig.jest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rewriteRelativeImportExtensions": false
5+
}
6+
}

0 commit comments

Comments
 (0)