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,