-
-
Notifications
You must be signed in to change notification settings - Fork 630
fix: assinging type
for core flags
#2455
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
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.
Can you show me configs
of this option (https://github.com/webpack/webpack/blob/master/lib/cli.js#L181)?
As you can see we have a bug on our side, we should support boolean values https://github.com/webpack/webpack/blob/2a0536cf510768111a3a6dceeb14cb79b9f59273/test/__snapshots__/Cli.test.js.snap#L2695 |
We need migration on |
Yes, I will do it. |
522edd0
to
3c3c5cf
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.
We have more bugs 😄
type
for core flags
Codecov Report
@@ Coverage Diff @@
## master #2455 +/- ##
==========================================
+ Coverage 71.86% 72.56% +0.70%
==========================================
Files 46 46
Lines 2186 2231 +45
Branches 583 602 +19
==========================================
+ Hits 1571 1619 +48
+ Misses 615 612 -3
Continue to review full report at Codecov.
|
c2afaed
to
a82ce2c
Compare
meta.type = normalizeType(meta.simpleType); | ||
if (meta.type === Boolean && !flag.endsWith('-reset')) { | ||
meta.negative = true; | ||
} |
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.
Some options can be only negative, i.e. --amd
(doesn't exists), we have only --no-amd
I can help to finish if you want |
a82ce2c
to
1a88bdb
Compare
That would be awesome, feel free to push a commit. |
Solved locally, tomorrow I will send a PR |
WIP on tests |
Tests are hard, I need more time on this, WIP, hope finish it tomorrow |
We really need rewrite tests, unfortunately I do not have time to rewrite the tests now, in the near future I will start to create roadmap and include example of testing for options |
191ef6b
to
843a9da
Compare
Added todo for macos tests, looks jest exit from tests and don't wait IO from node.js |
I hate cache, again the problem with cache... |
What kind of change does this PR introduce?
tests
Did you add tests for your changes?
yes
If relevant, did you update the documentation?
no
Summary
add test cases for
--module-parser-javascript-url
Does this PR introduce a breaking change?
No
Other information
Related thread #2438 (comment)