-
Notifications
You must be signed in to change notification settings - Fork 97
refactor: explicitly assign every internal config field #1021
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1021 +/- ##
==========================================
- Coverage 94.81% 94.81% -0.01%
==========================================
Files 97 96 -1
Lines 6150 6186 +36
Branches 486 481 -5
==========================================
+ Hits 5831 5865 +34
- Misses 165 166 +1
- Partials 154 155 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1021 +/- ##
=========================================
- Coverage 94.81% 94.8% -0.01%
=========================================
Files 97 96 -1
Lines 6211 6239 +28
Branches 486 483 -3
=========================================
+ Hits 5889 5915 +26
- Misses 183 184 +1
- Partials 139 140 +1
Continue to review full report at Codecov.
|
ofrobots
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.
Almost there.
Prerequisite to addressing a feature request in #994... this change makes every internal config option assignment explicit, and re-organizes internal config options so that instead of
interface ParentConfig extends ChildConfigit becomesinterface ParentConfig { childConfig: ChildConfig }. This means that each configurable component (internally) only gets config options that it asks for, rather than a large object containing all config options.Tested behavior should remain the same; some tests have been changed because of the re-organization of internal options.