-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
return the test in storyshots to respect promises. #2218
return the test in storyshots to respect promises. #2218
Conversation
…snapshotting, jest waits before failing
Codecov Report
@@ Coverage Diff @@
## master #2218 +/- ##
=======================================
Coverage 21.44% 21.44%
=======================================
Files 263 263
Lines 5801 5801
Branches 692 695 +3
=======================================
Hits 1244 1244
+ Misses 4036 4025 -11
- Partials 521 532 +11
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me. I'm not all too familiar with storyshots though.
Anyone with second opinions?
That's a great catch @travisbloom ! Fantastic contribution, than you so much 🙇 |
What I did
Jest will wait for promises to resolve before evaluating a test if you return one. This change allows developers to do async work in their test fn
How to test