Closed cpendery closed 7 months ago
Thanks, this looks neat and well tested!
A few feedbacks:
example
directory demonstrating how to use these options, can you create that?emitStdout
and emitStdError
are false or not provided. If indeed so, is there a way to test that?emitStdout !== emitStdError
? If not, we could unify them in a single option?Thanks, this looks neat and well tested!
A few feedbacks:
- Can you describe the new options in the README.md? (I see you added them to the TypeScript types already 👌)
- I think it would be helpful to create a small example in the
example
directory demonstrating how to use these options, can you create that?- I'm not sure if there are tests covering the case that
emitStdout
andemitStdError
are false or not provided. If indeed so, is there a way to test that?- A thought: is there actually a use case where you would want to configure
emitStdout !== emitStdError
? If not, we could unify them in a single option?
1/2. Sounds good, I'll add those! 👍
emitStdStreams
Thanks Chapman, this looks good 👍!
I'll merge and publish your new feature now.
Published now in v9.1.0
. Thanks again!
This PR adds support for capturing a worker's
stdout
/stderr
during a task and providing it as messages back from the worker. This is necessary because there is no supported way in Node.js to capturestdout
/stderr
from the worker's side.Example use case: A test worker that doesn't want to display any stdout during the test execution, but instead display it in an error view if the test fails.
Closes #423