Skip to content

Commit

Permalink
maybe remove another internal from ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 16, 2020
1 parent 3d53df2 commit 69c898f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-runner/src/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ async function runTestInternal(
}

// Delay the resolution to allow log messages to be output.
return new Promise(resolve => {
setImmediate(() => resolve({leakDetector, result}));
});
await new Promise(resolve => setImmediate(resolve));

return {leakDetector, result};
} finally {
await environment.teardown();

Expand Down

0 comments on commit 69c898f

Please sign in to comment.