-
Notifications
You must be signed in to change notification settings - Fork 568
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2966 +/- ##
==========================================
+ Coverage 94.57% 94.59% +0.01%
==========================================
Files 492 493 +1
Lines 10625 10654 +29
Branches 1635 1635
==========================================
+ Hits 10049 10078 +29
Misses 576 576 ☔ 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
6cc7dad
to
ce25973
Compare
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.