-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Migrate MetaMaskController from mocha to jest #20696
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
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #20696 +/- ##
===========================================
- Coverage 68.87% 68.20% -0.67%
===========================================
Files 999 999
Lines 38978 39846 +868
Branches 10473 10669 +196
===========================================
+ Hits 26845 27174 +329
- Misses 12133 12672 +539
☔ View full report in Codecov by Sentry. |
Builds ready [afa9102]
Page Load Metrics (1539 ± 37 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [d2e5b5a]
Page Load Metrics (1825 ± 101 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [eb22439]
Page Load Metrics (1628 ± 85 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Co-authored-by: Alex Donesky <adonesky@gmail.com>
Builds ready [3e95edd]
Page Load Metrics (1555 ± 83 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
adonesky1
left a comment
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.
LGTM!
adonesky1
left a comment
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.
LGTM!
Explanation
There is currently a fitness CI job that enforces the usage of assert/sinon does not increase. This PR migrates MetaMaskController from mocha to jest to resolve the fitness CI job failing for another branch. It achieves this by replacing usage of assert with jest expect and sinon with jest stubs.
Screenshots/Screencaps
Before
After
Manual Testing Steps
yarn test:unit:jestPre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Boardlabel.In this case, a QA Engineer approval will be be required.