packages/cli: revert jest tranform to use ts-jest, as sucrase doesn't hoist mocks

This commit is contained in:
Patrik Oldsberg
2020-05-17 16:13:20 +02:00
parent 1595bf11dd
commit 04c66c14df
3 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ 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('@sucrase/jest-plugin'),
'\\.(js|jsx|ts|tsx)': require.resolve('ts-jest'),
},
// Default behaviour is to not apply transforms for node_modules, but we still want