-
-
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
console.log is supressed when using --forceExit #2358
Comments
I think this is pretty much connected: #2166 |
Let's move the discussion there! |
I'm seeing this exact same behavior in jest v19.0.2. |
This problem seems to be still there in v22.4.2 |
Can someone provide a reproduction repo? If so, we'll reopen |
@SimenB Here it is: https://github.com/jbdemonte/jest-forceexit |
As explained in the readme, this seems to be due to the async process |
The issue here is that we have a timeout for flushing console logs in the default reporter: https://github.com/facebook/jest/blob/1eb02fd41ad6840350a5b2c0636151e2da8bcd8b/packages/jest-cli/src/reporters/default_reporter.js#L83-L86 Removing the #3895 tried to fix it, seems like it wasn't enough. Help appreciated! EDIT: When running with |
Any update on this issue? |
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. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
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. |
bug
Having test like:
With command
jest
it will printBut when calling it like
jest --forceExit
it does not print any console.log output. We expent it to behave same as without --forceExit.I tried 0.17.0 and 0.18.0, both with same result.
We use this flag, because on CI it wont end test process. Temporary solution is to have different taks on CI and local machine.
The text was updated successfully, but these errors were encountered: