From 5a876808066279c350e61cc8add42d7fb1e75e55 Mon Sep 17 00:00:00 2001 From: "Marc J. Schmidt" Date: Fri, 11 Dec 2020 01:37:21 +0100 Subject: [PATCH] removed hardcoded CommonJS for TS --- src/config/config-set.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/config/config-set.ts b/src/config/config-set.ts index 39fb736cbd..21141d55e0 100644 --- a/src/config/config-set.ts +++ b/src/config/config-set.ts @@ -233,9 +233,7 @@ export class ConfigSet { this.logger.debug({ babelConfig: this._babelConfig }, 'normalized babel config via ts-jest option') } - if (!this._babelConfig) { - this._overriddenCompilerOptions.module = this.compilerModule.ModuleKind.CommonJS - } else { + if (this._babelConfig) { this._babelJestTransformers = importer .babelJest(ImportReasons.BabelJest) .createTransformer(this._babelConfig) as BabelJestTransformer