Skip to content

Commit 42a2b18

Browse files
authored
test: modify location of ts-jest config in jest.config.js (#100)
1 parent b8f68b9 commit 42a2b18

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

jest.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ module.exports = {
1111
preset: 'ts-jest',
1212
testEnvironment: 'node',
1313
transform: {
14-
'^.+\\.tsx?$': 'ts-jest',
14+
'^.+\\.tsx?$': [
15+
'ts-jest',
16+
{
17+
tsconfig: 'tsconfig.test.json',
18+
},
19+
],
1520
},
1621

1722
// Test spec file resolution pattern
@@ -24,9 +29,4 @@ module.exports = {
2429
testTimeout: 20000,
2530

2631
//setupFiles: ['./tests/jest.setup.ts'],
27-
globals: {
28-
'ts-jest': {
29-
tsconfig: 'tsconfig.test.json',
30-
},
31-
},
3232
};

0 commit comments

Comments
 (0)