Skip to content

Commit

Permalink
removed hardcoded CommonJS for TS
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj authored Dec 11, 2020
1 parent 68f446b commit 5a87680
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/config/config-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a87680

Please sign in to comment.