Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

tests: throw in case we encounter unhandled promise rejection #132

Merged
merged 2 commits into from
Dec 20, 2018

Conversation

wiese
Copy link
Contributor

@wiese wiese commented Dec 20, 2018

As opposed to just showing a warning that might get eaten in cli when
multple jest child processes work in parallel.
See jestjs/jest#3251
This is a bit unsatifactory as it makes the parent jest process hang in
case there are such occurances.

Should be green again with #133

Bug: T212409

@wiese wiese requested a review from jakobw December 20, 2018 11:09
As opposed to just showing a warning that might get eaten in cli when
multple jest child processes work in parallel.
See jestjs/jest#3251
This is a bit unsatifactory as it makes the parent jest process hang in
case there are such occurances.

Bug: T212409
Previously, the used method was not mocked which caused the test to
result in an unhandled promise - and as this was only a warning it
stayed green.

Bug: T212409
@jakobw jakobw merged commit c4451fd into master Dec 20, 2018
@jakobw jakobw deleted the promise-rejection-fail branch December 20, 2018 11:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants