-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BufferedConsole doesn't work with winston in master. #8020
Comments
This is probably me messing up when converting it to TS - it forced me to change the signature of the functions. Good catch if that's the case!
We have quite a few integration tests that has a step which is |
Oh great. I'm able to create an integration test for it locally and re-create the error. I'm happy to take a look into it to fix it if you could point me in the right direction. I'm guessing |
I haven't looked into it. But feel free to open up a PR with just the failing test, and I can take a look and maybe point in the right direction 🙂 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
💥 Regression Report
Running jest with a local build of jest using
yarn link
on a project that uses winston for logging and settingverbose: false
causes jest to fail withSetting
verbose: false
configures jest to useBufferedConsole
.I've locally built jest on master and added in a
console.log
call inrunTest
in thejest-runner
package to log which Console is being used. Ideally we could have an integration test for this but I don't know how to write an integration test with a dependency in it.Last working version
Worked up to version: 24.1.0
Stopped working in version: master
To Reproduce
Steps to reproduce the behavior:
Setup any projects using winston and use the local version of jest and set
verbose: false
in the jest configExpected behavior
Here's a screenshot with jest at 24.1
And here's running the same test suite with jest at master. Note that I built it with a console log to verify which Console is being used.
Link to repl or repo (highly encouraged)
Here's a repo that I've made. I've left instructions and what I think is happening.
https://github.com/natealcedo/buffered-console-repro
Issues without a reproduction link are likely to stall.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: