Skip to content

Commit

Permalink
fix repl by es6 export Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Dec 15, 2018
1 parent 6a663d0 commit e1632c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/jest-runner/src/runTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ async function runTestInternal(
? require('jest-circus/runner') // eslint-disable-line import/no-extraneous-dependencies
: /* $FlowFixMe */
require(config.testRunner)): TestFramework);
/* $FlowFixMe */
const Runtime = (require(config.moduleLoader ||
'jest-runtime'): Class<RuntimeClass>);
const Runtime = ((config.moduleLoader
? /* $FlowFixMe */
require(config.moduleLoader)
: require('jest-runtime')): Class<RuntimeClass>);

let runtime = undefined;

Expand Down
3 changes: 3 additions & 0 deletions packages/jest-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,4 +966,7 @@ class Runtime {
}

Runtime.ScriptTransformer = ScriptTransformer;

module.exports = Runtime;

export default Runtime;

0 comments on commit e1632c6

Please sign in to comment.