Skip to content
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

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

snitin315
Copy link
Member

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

@snitin315
Copy link
Member Author

/cc @webpack/cli-team, need to look at CI.

@alexander-akait
Copy link
Member

@snitin315 problem on npm side https://status.npmjs.org/, don't worry

@alexander-akait alexander-akait merged commit 4fe8045 into next Aug 10, 2020
@alexander-akait alexander-akait deleted the tests/module-rule-options branch August 10, 2020 10:31
//--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-'));
Copy link
Member

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?

Copy link
Member Author

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.

describe('module config related flag', () => {
moduleFlags.forEach((flag) => {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarify!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants