-
-
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
jest stops after first instance of console.log using Windows #110
Comments
yep. It's definitely related to calling If I remove |
Thanks, that also works for my Windows7 (removing the |
Did this fix make it into 0.2.0? Because I'm still experiencing it (on Windows 8.1), but it's weird. I tried with the "Getting Started" example. Edit: I should have not been lazy and just looked myself. I see that the change hasn't made it in yet. Using @mkristo 's fork works fine |
…utput is truncated when pipe-directing stdout or stderr
This fix doesn't work anymore on |
+1 for getting this fixed. Without the #111 workaround using Jest on a windows box is essentially useless. |
+1 |
Updated merge in #224 |
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. |
I'm running Jest on a Windows 7 machine. There is very little information output to the console. I think this might possibly be related to nodejs/node-v0.x-archive#3479 and nodejs/node-v0.x-archive#3584
When I first setup Jest, for 1 test file containing multiple tests the only console output I could see was
I then began digging in to see why there was no more information logged.
In
jest-cli/src/defaultTestResultHandler
, thedefaultTestResultHandler
receives atestResult
object that upon debugging, I found contained a complete summary of all test cases. It then goes about logging the information in that object to the console. However after the first time console.log is called, jest exits.As a quick test, I removed the first instance of console.log in
defaultTestResultHandler
on line 105and found that more information was logged to the console. As I repeated this process, I eventually got to see a nicely formatted message of why my test failed
The text was updated successfully, but these errors were encountered: