Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit fe55d1f

Browse files
committed
Add workaround for using ts-jest with typescript project references
1 parent 279000c commit fe55d1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ module.exports = {
77
// Automatically clear mock calls and instances between every test
88
clearMocks: true,
99

10+
globals: {
11+
'ts-jest': {
12+
// Workaround for https://github.com/kulshekhar/ts-jest/issues/1648.
13+
tsconfig: 'tsconfig.base.json',
14+
},
15+
},
16+
1017
// Pre-process TypeScript files with ts-jest.
1118
preset: 'ts-jest',
1219

0 commit comments

Comments
 (0)