-
Notifications
You must be signed in to change notification settings - Fork 564
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
BREAKING: Add support for new state methods to snaps-simulation
#2966
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Frederik Bolding <[email protected]>
Co-authored-by: Frederik Bolding <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## mrtenz/state-methods #2966 +/- ##
=======================================================
Coverage ? 94.58%
=======================================================
Files ? 493
Lines ? 10652
Branches ? 1634
=======================================================
Hits ? 10075
Misses ? 577
Partials ? 0 ☔ View full report in Codecov by Sentry. |
* @returns The state of the Snap. | ||
* @yields Selects the state from the store. | ||
*/ | ||
function* getSnapStateImplementation(encrypted: boolean): SagaIterator<string> { |
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.
IIRC we already have a function for this, can we dedupe?
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 hook doesn't expect an origin as first parameter, so it's slightly different.
snaps-simulation
snaps-simulation
This adds support for the state methods introduced in #2916 to
snaps-simulation
(andsnaps-jest
), and updates the example to test these methods as well.Breaking changes
snaps-simulation
were separated into two separate types,PermittedMiddlewareHooks
andRestrictedMiddlewareHooks
.MiddlewareHooks
type was removed.