Skip to content

Commit

Permalink
fix(ts-jest): add isolated modules for internal ts-jest instance (#1941)
Browse files Browse the repository at this point in the history
This allows we remove the global ts-jest config from user app.
  • Loading branch information
3cp committed Apr 15, 2024
1 parent 877a385 commit 7eb31f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages-tooling/ts-jest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const $createTransformer = (typeof tsJest.createTransformer === 'function'
: (() => { throw new Error('Unable to import createTransformer from "ts-jest"'); })
) as typeof tsJest.createTransformer;

const tsTransformer = $createTransformer();
const tsTransformer = $createTransformer({ isolatedModules: true });

function _createTransformer(
conventionsOptions = {},
Expand Down

0 comments on commit 7eb31f4

Please sign in to comment.