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

chore: update commander.js to v12 #4315

Merged
merged 3 commits into from
Nov 4, 2024
Merged

chore: update commander.js to v12 #4315

merged 3 commits into from
Nov 4, 2024

Conversation

snitin315
Copy link
Member

@snitin315 snitin315 commented Nov 4, 2024

What kind of change does this PR introduce?
deps

Did you add tests for your changes?
Updated existing tests
If relevant, did you update the documentation?
NA
Summary

Does this PR introduce a breaking change?
No

Other information
No

@snitin315 snitin315 requested a review from a team as a code owner November 4, 2024 04:18
@@ -1703,11 +1703,9 @@ describe("CLI API", () => {
consoleSpy = jest.spyOn(global.console, "log");
exitSpy = jest.spyOn(process, "exit").mockImplementation(() => {});

cli.program.option("--color [value]", "any color", "blue");
Copy link
Member Author

@snitin315 snitin315 Nov 4, 2024

Choose a reason for hiding this comment

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

Adding a duplicate option now throws an error, hence updating the test case to use an existing option.

Screenshot 2024-11-04 at 9 47 34 AM

@snitin315 snitin315 merged commit 8d9e5c0 into next Nov 4, 2024
42 checks passed
@snitin315 snitin315 deleted the update-commanderjs branch November 4, 2024 11:12
],
[
"Made with ♥ by the webpack team.",
"Made with ♥ by the webpack team.",
Copy link
Member

Choose a reason for hiding this comment

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

@snitin315 Why it was changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

@alexander-akait Test case was updated to use --mode instead of --color.
#4315 (comment)

snitin315 added a commit that referenced this pull request Dec 17, 2024
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