Skip to content

Commit

Permalink
chore: Review change reorder to reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark1626 committed Jul 28, 2019
1 parent 6df2858 commit 2c2b730
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/jest-runner/src/runTest.ts
Expand Up @@ -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;

Expand Down

0 comments on commit 2c2b730

Please sign in to comment.