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 Aug 23, 2020
1 parent 35428db commit 5aab3b7
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 @@ -304,9 +304,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();
// TODO: this function might be missing, remove ? in Jest 26
Expand Down

0 comments on commit 5aab3b7

Please sign in to comment.