Skip to content
Prev Previous commit
Next Next commit
fix flow
  • Loading branch information
SimenB committed May 22, 2018
commit 8d07ee6696ea77fdcbe6c64ec5e97a2bfb6a4f9e
2 changes: 1 addition & 1 deletion packages/jest-runner/src/run_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function runTestInternal(
environment: 'node',
handleUncaughtExceptions: false,
retrieveSourceMap: source => {
const sourceMaps = runtime.getSourceMaps();
const sourceMaps = runtime && runtime.getSourceMaps();
const sourceMapSource = sourceMaps && sourceMaps[source];

if (sourceMapSource) {
Expand Down