diff --git a/packages/eslint-plugin-internal/jest.config.js b/packages/eslint-plugin-internal/jest.config.js index b64d433b01a..1123e5ab8ad 100644 --- a/packages/eslint-plugin-internal/jest.config.js +++ b/packages/eslint-plugin-internal/jest.config.js @@ -1,6 +1,11 @@ 'use strict'; module.exports = { + globals: { + 'ts-jest': { + isolatedModules: true, + }, + }, testEnvironment: 'node', transform: { '^.+\\.tsx?$': 'ts-jest', diff --git a/packages/eslint-plugin-tslint/jest.config.js b/packages/eslint-plugin-tslint/jest.config.js index 862b0dda600..2cc2459cf65 100644 --- a/packages/eslint-plugin-tslint/jest.config.js +++ b/packages/eslint-plugin-tslint/jest.config.js @@ -1,6 +1,11 @@ 'use strict'; module.exports = { + globals: { + 'ts-jest': { + isolatedModules: true, + }, + }, testEnvironment: 'node', transform: { '^.+\\.tsx?$': 'ts-jest', diff --git a/packages/eslint-plugin/jest.config.js b/packages/eslint-plugin/jest.config.js index b64d433b01a..1123e5ab8ad 100644 --- a/packages/eslint-plugin/jest.config.js +++ b/packages/eslint-plugin/jest.config.js @@ -1,6 +1,11 @@ 'use strict'; module.exports = { + globals: { + 'ts-jest': { + isolatedModules: true, + }, + }, testEnvironment: 'node', transform: { '^.+\\.tsx?$': 'ts-jest', diff --git a/packages/experimental-utils/jest.config.js b/packages/experimental-utils/jest.config.js index b64d433b01a..1123e5ab8ad 100644 --- a/packages/experimental-utils/jest.config.js +++ b/packages/experimental-utils/jest.config.js @@ -1,6 +1,11 @@ 'use strict'; module.exports = { + globals: { + 'ts-jest': { + isolatedModules: true, + }, + }, testEnvironment: 'node', transform: { '^.+\\.tsx?$': 'ts-jest', diff --git a/packages/parser/jest.config.js b/packages/parser/jest.config.js index a74f80d7a06..309c75f2fd3 100644 --- a/packages/parser/jest.config.js +++ b/packages/parser/jest.config.js @@ -1,6 +1,11 @@ 'use strict'; module.exports = { + globals: { + 'ts-jest': { + isolatedModules: true, + }, + }, testEnvironment: 'node', transform: { '^.+\\.tsx?$': 'ts-jest', diff --git a/packages/typescript-estree/jest.config.js b/packages/typescript-estree/jest.config.js index e01f6ed0775..e69be1bf1f9 100644 --- a/packages/typescript-estree/jest.config.js +++ b/packages/typescript-estree/jest.config.js @@ -1,6 +1,11 @@ 'use strict'; module.exports = { + globals: { + 'ts-jest': { + isolatedModules: true, + }, + }, testEnvironment: 'node', transform: { '^.+\\.tsx?$': 'ts-jest',