From 7aa39284a1fab0bdfb55208f29ef1dab1bff5546 Mon Sep 17 00:00:00 2001 From: Ahn Date: Mon, 3 Feb 2020 10:52:11 +0700 Subject: [PATCH] fix(config): remove unused codes --- src/config/config-set.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/config/config-set.ts b/src/config/config-set.ts index cf914480a2..004a19f953 100644 --- a/src/config/config-set.ts +++ b/src/config/config-set.ts @@ -348,24 +348,6 @@ export class ConfigSet { } } - // private static loadConfig(base: BabelConfig): BabelConfig { - // // loadPartialConfig is from babel 7+, and OptionManager is backward compatible but deprecated 6 API - // const { OptionManager, loadPartialConfig, version } = importer.babelCore(ImportReasons.BabelJest) - // // cwd is only supported from babel >= 7 - // if (version && semver.satisfies(version, '>=6 <7')) { - // delete base.cwd - // } - // // call babel to load options - // if (typeof loadPartialConfig === 'function') { - // const partialConfig = loadPartialConfig(base) - // if (partialConfig) { - // return partialConfig.options as BabelConfig - // } - // } - // - // return new OptionManager().init(base) as BabelConfig - // } - @Memoize() get babel(): BabelConfig | undefined { const {