MetaMask / snaps

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

Add support for file inputs to `snaps-jest` #2494

Closed Mrtenz closed 1 week ago

Mrtenz commented 1 week ago

This adds a new method uploadFile to the interface object returned by snaps-jest, to "upload" a file to the Snap. This simulates the file input component.

socket-security[bot] commented 1 week ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/mime@3.0.4 None 0 3.25 kB types
npm/mime@3.0.0 None 0 60.1 kB broofa

View full report↗︎

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 94.38%. Comparing base (e01df64) to head (85057f8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2494 +/- ## ========================================== + Coverage 94.36% 94.38% +0.02% ========================================== Files 441 441 Lines 9068 9106 +38 Branches 1396 1405 +9 ========================================== + Hits 8557 8595 +38 Misses 511 511 ```

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