-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
tests: remove --module-rules-options instances #1735
Conversation
/cc @webpack/cli-team, need to look at CI. |
@snitin315 problem on npm side https://status.npmjs.org/, don't worry |
//--module-rules-options will be excluded for cli. | ||
const moduleFlags = flagsFromCore.filter(({ name }) => name.startsWith('module-') && name !== 'module-rules-options'); | ||
|
||
const moduleFlags = flagsFromCore.filter(({ name }) => name.startsWith('module-')); |
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.
/cc @snitin315 So we still don't have tests on module-
flags?
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.
@evilebottnawi We have, This file contains exclusively tests for all module-*
flags, We are extracting all the module-*
flags here and then looping through them.
webpack-cli/test/core-flags/module-flags.test.js
Lines 8 to 9 in 4fe8045
describe('module config related flag', () => { | |
moduleFlags.forEach((flag) => { |
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.
Thanks for clarify!
What kind of change does this PR introduce?
tests
Did you add tests for your changes?
NA
If relevant, did you update the documentation?
NA
Summary
removed
--module-rules-options
instances as it has been excluded for cli from core schema.Does this PR introduce a breaking change?
NO
Other information
webpack/webpack#11171