From e0895da602d2dff5ac39134f6e16114e1c7b8baa Mon Sep 17 00:00:00 2001 From: Ahn Date: Sat, 1 Feb 2020 02:41:26 +0400 Subject: [PATCH] fix(config): pass plain config object to babel-jest transformer --- src/config/config-set.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/config/config-set.ts b/src/config/config-set.ts index 0d3144969c..10b4fe8dda 100644 --- a/src/config/config-set.ts +++ b/src/config/config-set.ts @@ -394,12 +394,9 @@ export class ConfigSet { } else if (babelConfig.kind === 'inline') { base = { ...base, ...babelConfig.value } } + this.logger.debug({ babelConfig: base }, 'normalized babel config via ts-jest option') - // call babel to load options - const config = ConfigSet.loadConfig(base) - - this.logger.debug({ babelConfig: config }, 'normalized babel config') - return config + return base } @Memoize()