Skip to content

Commit 56fef01

Browse files
committed
Add tsconfig.test.json
1 parent 01e4a20 commit 56fef01

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

jest.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ module.exports = {
1212
modulePathIgnorePatterns: ['example'],
1313
transform: {
1414
'^.+\\.jsx$': 'babel-jest',
15-
'^.+\\.tsx?$': [
16-
'ts-jest',
17-
{
18-
tsconfig: 'tsconfig.json',
19-
},
20-
],
15+
'^.+\\.tsx?$': 'ts-jest',
16+
},
17+
globals: {
18+
'ts-jest': {
19+
tsconfig: 'tsconfig.test.json',
20+
},
2121
},
2222
};

tsconfig.test.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["test/**/*"]
4+
}

0 commit comments

Comments
 (0)