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 82b6231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ PASS __tests__/console.test.js
15 | });
16 |
at Function.write (../../packages/jest-util/build/BufferedConsole.js:82:12)
at BufferedConsole.log (../../packages/jest-util/build/BufferedConsole.js:169:10)
at log (__tests__/console.test.js:13:13)
`;
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 82b6231

Please sign in to comment.