-
Notifications
You must be signed in to change notification settings - Fork 558
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
Add support for custom dialogs in snaps-jest
#2526
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2526 +/- ##
==========================================
+ Coverage 93.90% 93.93% +0.03%
==========================================
Files 455 455
Lines 9477 9531 +54
Branches 1447 1458 +11
==========================================
+ Hits 8899 8953 +54
Misses 578 578 ☔ View full report in Codecov by Sentry. |
@@ -141,6 +141,7 @@ describe('onRpcRequest', () => { | |||
}); | |||
|
|||
const ui = await response.getInterface(); |
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.
Now that I think about it, it seems easier to specify the expected type in getInterface
rather than having to assert all the time.
const ui = await response.getInterface(); | |
const ui = await response.getInterface('confirmation'); | |
// `ui` is now `ConfirmationDialog` type |
I can take care of this in a separate PR.
0238f1c
to
665aee2
Compare
This PR adds the support for the new
default
type dialog.