Skip to content

Commit

Permalink
moar teamplate
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jan 29, 2019
1 parent 364a0d6 commit 2703742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-runner/src/runTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down

0 comments on commit 2703742

Please sign in to comment.