Skip to content

Commit

Permalink
fix(temp): use isolatedModules in ts-jest
Browse files Browse the repository at this point in the history
`isolatedModules` being set to true will fix a memory leak in ts-jest. However, type checking will not be performed whilst running tests (will still have type checking when writing tests).

Revert after the memory leak is fixed.
See kulshekhar/ts-jest#1967
See: https://kulshekhar.github.io/ts-jest/user/config/isolatedModules
  • Loading branch information
karrui committed Dec 3, 2020
1 parent e3a5b11 commit 26b1810
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jest.config.js
Expand Up @@ -12,4 +12,11 @@ module.exports = {
statements: 38, // Increase this percentage as test coverage improves
},
},
globals: {
// Revert when memory leak in ts-jest is fixed.
// See https://github.com/kulshekhar/ts-jest/issues/1967.
'ts-jest': {
isolatedModules: true,
},
},
}

0 comments on commit 26b1810

Please sign in to comment.