From 8256295651daaab2f64a213450684da59e7bb808 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 3 Mar 2019 17:07:55 +0100 Subject: [PATCH] fixe type error --- packages/jest-runner/src/runTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-runner/src/runTest.ts b/packages/jest-runner/src/runTest.ts index d8abc39f092c..ebbae640c6d3 100644 --- a/packages/jest-runner/src/runTest.ts +++ b/packages/jest-runner/src/runTest.ts @@ -36,10 +36,10 @@ type RunTestInternalResult = { }; function freezeConsole( - // @ts-ignore: Correct types when `jest-util` is ESM testConsole: BufferedConsole | CustomConsole | NullConsole, config: Config.ProjectConfig, ) { + // @ts-ignore: `_log` is `private` - we should figure out some proper API here testConsole._log = function fakeConsolePush( _type: LogType, message: LogMessage,