cli: switch ts-jest to use isolatedModules

This commit is contained in:
Patrik Oldsberg
2020-08-22 10:08:06 +02:00
parent 34a6210e2f
commit 950b316820
+4 -1
View File
@@ -37,7 +37,10 @@ async function getConfig() {
// TODO: jest is working on module support, it's possible that we can remove this in the future
transform: {
'\\.esm\\.js$': require.resolve('jest-esm-transformer'),
'\\.(js|jsx|ts|tsx)$': require.resolve('ts-jest'),
'\\.(js|jsx|ts|tsx)$': [
require.resolve('ts-jest'),
{ isolatedModules: true },
],
'\\.(bmp|gif|jpg|jpeg|png|frag|xml|svg)$': require.resolve(
'./jestFileTransform.js',
),