-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Convert shared/modules/network.utils to TS #18352
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. |
We want to convert NetworkController to TypeScript in order to be able to compare differences in the controller between in this repo and the core repo. To do this, however, we need to convert the dependencies of the controller to TypeScript. As a part of this effort, this commit converts `shared/modules/network.utils.js` to TypeScript, and also adds tests.
157eaf9
to
85cb577
Compare
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.
Looks great! The additional unit tests are appreciated. I noticed one minor problem with at test, but otherwise I can approve this when CI is passing
Codecov Report
@@ Coverage Diff @@
## develop #18352 +/- ##
===========================================
+ Coverage 64.78% 64.80% +0.02%
===========================================
Files 927 927
Lines 35698 35684 -14
Branches 9164 9158 -6
===========================================
- Hits 23126 23123 -3
+ Misses 12572 12561 -11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Builds ready [4931a90]
Page Load Metrics (1554 ± 55 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Co-authored-by: Mark Stacey <[email protected]>
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!
Builds ready [37da849]
Page Load Metrics (2071 ± 115 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [23efe01]
Page Load Metrics (1750 ± 74 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Explanation
We want to convert NetworkController to TypeScript in order to be able to compare differences in the controller between in this repo and the core repo. To do this, however, we need to convert the dependencies of the controller to TypeScript.
As a part of this effort, this commit converts
shared/modules/network.utils.js
to TypeScript, and also adds tests.Progresses #18285.
Manual Testing Steps
This commit should not introduce any functional changes. All tests should pass, and all functionality in the extension should continue to work.
Pre-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 Board
label.In this case, a QA Engineer approval will be be required.