-
Notifications
You must be signed in to change notification settings - Fork 3
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: if Promise doesn’t complete, remains waiting (instead of timeout) #31
Comments
The problem is that there's no timeout in the Promise, and JavaScript promises cannot be cancelled from outside. |
Suggestion for a work-around: If we’re able to detect when the Jest environment has been torn down, make a This won’t allow us to change a timeout (in the reports) to success/fail, but it should be enough to let the execution pass (focus of the issue). …aaand we can know the environment is down simply by making an |
Could bring
|
Did a small experiment; can indeed tap into the The thing keeping Jest from returning the control is the Firebase listener; not an unresolved Promise (Jest seems fine with those). A suitable solution can be done. Since this repo is about Firebase / Jest interaction, this might be as good a place as any to do it. (ultimately, Firebase could be more Jest friendly?) |
Fixed in 05b1eb9, coming to next release. The fix wraps |
Steps:
Change this line to have a doc ID that doesn't get changed:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: