-
-
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
stdout and stderr are written to console out of sync #6718
Comments
Could you setup a repro so it's easier to approach this case? |
https://repl.it/@medikoo/stderr-stdout-sync-issue Still it's not perfectly reliable, as behaves differently than in system terminal (but bug remains visible, as still output is out of sync). Also it runs Jest v22 and not latest 23 (not sure how I can bump it over there). To reproduce locally is as easy as creating |
What is the status of this issue? |
Solution to this is probably for Jest to intercept |
Is it on the roadmap to also intercept |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
bump |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
How can such terrible bug, be not handled for 6 years, phew.. |
🐛 Bug Report
data streamed to
process.stdout
andprocess.stderr
does not appear in sync.It makes debugging in some cases difficult and very confusing
e.g. I work with application where some parts, rely on
console.log
(so propagate debug logs tostdout
) while some app dependencies output debug logs via popular debug library (which propagates logs tostderr
)Logs from both sources appear out of sync, which makes reliable debugging quite difficult.
To Reproduce
In empty project create
some.test.js
:After running
jest
output is as follows:Expected behavior
Output as:
Env info
System: OS: macOS High Sierra 10.13.5 CPU: x64 Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz Binaries: Node: 10.7.0 - /usr/local/bin/node Yarn: 1.7.0 - /usr/local/bin/yarn npm: 6.1.0 - /usr/local/bin/npm npmPackages: jest: ^23.4.1 => 23.4.1
The text was updated successfully, but these errors were encountered: