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

fix: validate CLI flags that require arguments receives them #14783

Merged
merged 3 commits into from
Dec 26, 2023

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Dec 26, 2023

Summary

I noticed jest --shard without an argument didn't fail, so added that.

Also removed the explicit env flag and added it as an alias to testEnvironment instead.

Test plan

Green CI

Copy link

netlify bot commented Dec 26, 2023

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 458374f
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/658ae8acab1c410008f3eb47
😎 Deploy Preview https://deploy-preview-14783--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@SimenB SimenB enabled auto-merge (squash) December 26, 2023 14:50
@@ -28,8 +28,9 @@
- `[expect]` Check error instance type for `toThrow/toThrowError` ([#14576](https://github.com/jestjs/jest/pull/14576))
- `[jest-circus]` [**BREAKING**] Prevent false test failures caused by promise rejections handled asynchronously ([#14315](https://github.com/jestjs/jest/pull/14315))
- `[jest-circus, jest-expect, jest-snapshot]` Pass `test.failing` tests when containing failing snapshot matchers ([#14313](https://github.com/jestjs/jest/pull/14313))
- `[jest-config]` Make sure to respect `runInBand` option ([#14578](https://github.com/facebook/jest/pull/14578))
- `[jest-config]` Support `testTimeout` in project config ([#14697](https://github.com/facebook/jest/pull/14697))
- `[jest-cli]` [**BREAKING**] Validate CLI flags that require arguments receives them ([#14783](https://github.com/jestjs/jest/pull/14783))
Copy link
Member Author

Choose a reason for hiding this comment

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

this line is new - the other just link to jestjs/jest instead of facebook/jest

@SimenB SimenB disabled auto-merge December 26, 2023 15:19
@SimenB SimenB merged commit 796f346 into jestjs:main Dec 26, 2023
73 checks passed
@SimenB SimenB deleted the require-args branch December 26, 2023 15:19
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2024
@SimenB
Copy link
Member Author

SimenB commented Feb 20, 2024

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

Successfully merging this pull request may close these issues.

1 participant