-
Notifications
You must be signed in to change notification settings - Fork 73
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
Bug in v4.0.20 of oclif/core during testing with jest #1185
Comments
@cmdcolin Thanks for the detailed writeup! For context, we released a fix for this issue yesterday. The PR swapped I was able to get your tests passing by setting I'm not familiar with jest, but my guess is that they're doing something to supress console.log when I'm not sure that there's a whole lot we can do on the oclif side to avoid this - other than document that jest users should use |
interesting. the verbose:true workaround isn't too bad! thanks for finding |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
@mdonnalley the "verbose:true" workaround doesn't seem to work for jest anymore. i think <=4.0.25 worked but >=4.0.26 stopped working |
Describe the bug
It appears that running multiple tests no longer captures stdout properly in our projects test suite after upgrading v4.0.19 to v4.0.20 (released just today...bleeding edge :))
To Reproduce
clone repo, run tests https://github.com/cmdcolin/jest-oclif-test-bug-repro
Expected behavior
Tests pass
Screenshots
here is a session from my terminal showing running an individual test works, but running 'all tests' (both tests) fails. adding --runInBand does not fix it so it's not strictly a parallelism thing i think
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: