-
-
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
Intercept process.stdout and process.stderr #6524
base: main
Are you sure you want to change the base?
Conversation
@aaronabramov thoughts? |
In particular, the case reported in #6311 now runs like this: (is it a bug that |
Seems like it broke colors in error output. Not sure why... EDIT: It might be a better idea to just replace |
@mjesun these fail: Thoughts? Just check that they're still streams? |
i actually tried getting this into Jest a few times a while ago, but i think @cpojer had some strong opinions against it. |
Depending on how |
4cb411a
to
fc0b71d
Compare
Rebased this, would love to land it |
539bb2f
to
799b4e1
Compare
@cpojer do you have thoughts on this, strong or otherwise? |
I am ok with it but I do want to point out that people have been upset about us re-routing |
Yeah, that's a good idea. Unsure how we can make that happen without messing up when we clear lines to update status etc, but worth looking into |
What's the status of this PR? |
I've forgotten about it 😀 I'd like to get back to it at some point though |
Might want to take a look at: https://github.com/AtakamaLLC/capio |
799b4e1
to
2b98983
Compare
570cf2b
to
e470822
Compare
Just spent almost an hour rebasing this across splitting up |
e470822
to
0a1f6d8
Compare
Ping? |
Summary
Fixes #6311.
Thoughts very much welcome on the implementation. I'm not particularly happy with it. I chose to keep it as a stream so that people doing
something.pipe(process.stdout)
in their code didn't break.Test plan
Tests updated.