From 24941fb5066a71f2deb37f673b7f38adb7790298 Mon Sep 17 00:00:00 2001 From: M4rk9696 Date: Sat, 27 Jul 2019 22:57:24 +0530 Subject: [PATCH] chore: Review change reorder to reduce diff --- packages/jest-runner/src/runTest.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/jest-runner/src/runTest.ts b/packages/jest-runner/src/runTest.ts index 3a63c96b9b81..42c98df2312d 100644 --- a/packages/jest-runner/src/runTest.ts +++ b/packages/jest-runner/src/runTest.ts @@ -105,19 +105,17 @@ async function runTestInternal( }); } - const Runtime: typeof RuntimeClass = config.moduleLoader - ? require(config.moduleLoader) - : require('jest-runtime'); const transformer = new ScriptTransformer(config); - const TestEnvironment: typeof JestEnvironment = interopRequireDefault( transformer.requireAndTranspileModule(testEnvironment), ).default; - const testFramework: TestFramework = process.env.JEST_CIRCUS === '1' ? require('jest-circus/runner') // eslint-disable-line import/no-extraneous-dependencies : require(config.testRunner); + const Runtime: typeof RuntimeClass = config.moduleLoader + ? require(config.moduleLoader) + : require('jest-runtime'); let runtime: RuntimeClass | undefined = undefined;