From 2703742f2f4c1bbf07b9f810be6781c842117eb1 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 29 Jan 2019 08:29:04 +0100 Subject: [PATCH] moar teamplate --- packages/jest-runner/src/runTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-runner/src/runTest.js b/packages/jest-runner/src/runTest.js index b37f93fbc671..2ff916f45abd 100644 --- a/packages/jest-runner/src/runTest.js +++ b/packages/jest-runner/src/runTest.js @@ -42,11 +42,11 @@ function freezeConsole( // $FlowFixMe: overwrite it for pretty errors testConsole._log = function fakeConsolePush(_type, message) { const error = new ErrorWithStack( - chalk.red( + `${chalk.red( `${chalk.bold( 'Cannot log after tests are done.', )} Did you forget to wait for something async in your test?`, - ) + `\nAttempted to log "${message}".`, + )}\nAttempted to log "${message}".`, fakeConsolePush, );