From 69c898f3cf056a79317da44e54b6e325ec1c2332 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Thu, 20 Feb 2020 13:07:41 +0100 Subject: [PATCH] maybe remove another internal from ci --- packages/jest-runner/src/runTest.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/jest-runner/src/runTest.ts b/packages/jest-runner/src/runTest.ts index 87b9e809720c..2004c19d1302 100644 --- a/packages/jest-runner/src/runTest.ts +++ b/packages/jest-runner/src/runTest.ts @@ -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();