Skip to content

Commit

Permalink
correct logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jan 27, 2019
1 parent 2f2e35d commit d05b222
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 @@ -39,8 +39,8 @@ function freezeConsole(
testConsole: BufferedConsole | Console | NullConsole,
config: ProjectConfig,
) {
// $FlowFixMe: overwrite it for pretty errors. `Object.freeze` works, but gives ugly errors
testConsole._log = function fakeConsolePush({message}) {
// $FlowFixMe: overwrite it for pretty errors
testConsole._log = function fakeConsolePush(_type, message) {
const error = new ErrorWithStack(
chalk.red(
`${chalk.bold(
Expand Down

0 comments on commit d05b222

Please sign in to comment.