Skip to content

Commit

Permalink
Migrate back to CommonJS export for jest-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Jan 11, 2019
1 parent 6a066c6 commit 8e3dd9a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/jest-cli/src/__tests__/SearchSource.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('SearchSource', () => {
let searchSource;

beforeEach(() => {
Runtime = require('jest-runtime').default;
Runtime = require('jest-runtime');
SearchSource = require('../SearchSource').default;
normalize = require('jest-config').normalize;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const cases = {
const filter = path => Object.keys(cases).every(key => cases[key](path));

beforeEach(() => {
Runtime = require('jest-runtime').default;
Runtime = require('jest-runtime');
config = normalize(
{
rootDir: '.',
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runner/src/runTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function runTestInternal(
const Runtime = ((config.moduleLoader
? /* $FlowFixMe */
require(config.moduleLoader)
: require('jest-runtime').default): Class<RuntimeClass>);
: require('jest-runtime')): Class<RuntimeClass>);

let runtime = undefined;

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,4 @@ class Runtime {

Runtime.ScriptTransformer = ScriptTransformer;

export default Runtime;
module.exports = Runtime;

0 comments on commit 8e3dd9a

Please sign in to comment.