Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

natealcedo/buffered-console-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is to replicate a project using winston as its logger

This repo is to replicate how a project works when winston is used for logging and jest at master. I believe this is a regression because [email protected] works with this setup.

What I think is happening

It seems that there's a bug in BufferedConsole in jest-util. Internally, winston uses console._stdout.write when you log. I don't have enough context on how jest overrides the global console object but I know jest does this so that it can defer logging in getConsoleOutput.

Steps to verify

With [email protected]

  1. Run yarn to install deps
  2. Run yarn test
  3. Verify tests pass

With jest@master

  1. Build jest locally
  2. cd into jest/packages/jest-cli in your local version of jest and run yarn link
  3. cd back into this project and run yarn link jest-cli
  4. Run yarn test
  5. Verify tests fail

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published