diff --git a/packages/jest-config/src/normalize.js b/packages/jest-config/src/normalize.js index 1d579761488b..408f7aeda3f0 100644 --- a/packages/jest-config/src/normalize.js +++ b/packages/jest-config/src/normalize.js @@ -74,15 +74,15 @@ const setupPreset = ( ); try { - // $FlowFixMe - preset = (require(presetModule): InitialOptions); - // Force re-evaluation to support multiple projects try { if (presetModule) { delete require.cache[require.resolve(presetModule)]; } } catch (e) {} + + // $FlowFixMe + preset = (require(presetModule): InitialOptions); } catch (error) { if (error instanceof SyntaxError) { throw createConfigError(