-
Notifications
You must be signed in to change notification settings - Fork 232
Capture all results a rendered hook produces. #496
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #496 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 126 128 +2
Branches 23 24 +1
=========================================
+ Hits 126 128 +2
Continue to review full report at Codecov.
|
pr/result-history-docs
I want to hold off on this until after #502 so I can test semantic release (I'll amend my commit messages first). |
There was an issue with a minor release, so this manual-releases.md change is to release a new minor version. Reference: #496
🎉 This PR is included in version 3.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #461
What:
Make all results a rendered hook produces available to tests for assertions.
Why:
To test that initial states (prior to effects running) or other intermediate states were produced as expected. There has been some suggestion this could be useful for testing SSR scenarios as well.
How:
When the result gets update it we push it into an array and surface it through the
result
container returned fromrenderHook
asresult.all
.Checklist: