MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
711 stars 546 forks source link

fix: properly handle invalid interfaces during test #2433

Closed FrederikBolding closed 1 month ago

FrederikBolding commented 1 month ago

When using .getInterface() with a Snap that produces an invalid interface, the tests would previously time out. This PR aims to catch the problem and fail sooner with a better error message.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.32%. Comparing base (6bd631e) to head (7537ea6).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2433 +/- ## ======================================= Coverage 94.31% 94.32% ======================================= Files 438 438 Lines 9001 9016 +15 Branches 1379 1382 +3 ======================================= + Hits 8489 8504 +15 Misses 512 512 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.