-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore(test): add new unit tests after removing exclusions from Sonar config #13031
base: main
Are you sure you want to change the base?
Conversation
…s true, to check CI
…code) from NetworkVerificationInfo component
…code that ran when feature flag was off (which was now dead code)
…ture flag, remove code that ran when feature flag was off (which was now dead code)
…ks on feature flag, remove code that ran when feature flag was off (which was now dead code)
…e. Update the test to mock nav, and snapshot expected to be updated too.
…tests. In more detail, after removal of feature flag and corresponding dead code of ff-off, test now runs on ff-on and required update to show content of accordion before asserting, and update snapshot to match new expected rendering.
…t component default style was changed in main
…r multichain and the deadcode behind it. In the case of this component, it didn't directly have multichain code in it but was rendering a component which did (NetworkVerificationInfo)
… feature flag for multichain and the deadcode behind it. It needs this since it uses components than end up using NetworkVerificationInfo which had some code toggled on and off based on the multichain feature flag which is being removed in this PR.
…eature flag was ON. This check on the feature flag was used in some components to render stuff that should render only when the flag was ON.
…ubleshooting during code cleanup
… since all multichain-permission code is ff-on now
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. |
Bitrise❌❌❌ Commit hash: f4eab91 Note
Tip
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13031 +/- ##
==========================================
+ Coverage 59.83% 59.94% +0.10%
==========================================
Files 1873 1884 +11
Lines 42121 42202 +81
Branches 5473 5476 +3
==========================================
+ Hits 25204 25298 +94
+ Misses 15235 15213 -22
- Partials 1682 1691 +9 ☔ View full report in Codecov by Sentry. |
Bitrise❌❌❌ Commit hash: c32d4a6 Note
Tip
|
Bitrise✅✅✅ Commit hash: 935f02c Note
|
Quality Gate passedIssues Measures |
Description
This PR contains the sonar coverage after removing exclusions for the sonar config file
Related issues
Contributes to: https://github.com/MetaMask/MetaMask-planning/issues/3663
Manual testing steps
run the unit tests using yarn test:unit
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist