-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
lib: use validators for argument validation #59416
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59416 +/- ##
==========================================
- Coverage 89.89% 89.88% -0.01%
==========================================
Files 656 656
Lines 192983 192981 -2
Branches 37849 37849
==========================================
- Hits 173478 173466 -12
- Misses 12055 12064 +9
- Partials 7450 7451 +1
🚀 New features to boost your workflow:
|
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.
I agree that this seems right. This is a major change though.
@meteorqz6 can you please have a look at the tests? They need to be adjusted.
7ba0f1f
to
2c94e58
Compare
This refactors internal validation helpers in `child_process` to use the common validators in `lib/internal/validators.js` where possible. This improves code consistency and maintainability.
2c94e58
to
49c5ea1
Compare
I've adjusted the tests. |
Please take a look when you have a moment. @BridgeAR |
@nodejs/tsc semver-major requires at least 2 TSC approvals to land. |
Landed in 39d7303 |
This refactors internal validation helpers in
child_process
to use the common validators inlib/internal/validators.js
where possible.This improves code consistency and maintainability.