Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore(eslint-plugin): switch auto-generated test cases to hand-written in prefer-nullish-coalescing.test.ts#11325
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
Thanks for the PR,@Vinccool96! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. |
netlifybot commentedJun 20, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify project configuration. |
nx-cloudbot commentedJun 20, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
View yourCI Pipeline Execution ↗ for commit9677a0c.
☁️Nx Cloud last updated this comment at |
Uh oh!@Vinccool96, at least one image you shared is missing helpful alt text. Check#11325 (comment) to fix the following violations:
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text atBasic writing and formatting syntax: images on GitHub Docs.
|
Those two statements are mutually exclusive 😄. Even if no cases are
I think a large percentage of the file -perhaps a majority- could be deduplicated without reducing logical coverage of the rule. |
JoshuaKGoldberg left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 getting this started! I don't think we can work with a ~19-20k file test though. This is the kind of explosive duplication the backing issue is trying to avoid. Can you reduce the number of redundant test cases please?
Vinccool96 commentedJun 23, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Sure. But do you have a trick on how to spot redundant test cases, and how to know I'm not removing something useful? |
I've got no quick tricks to mention 😞. In general, each test case should try to test some unique piece of logic. So if you're looking at a test, try to ask:"what piece(s) of logic / potential breakage(s) is this checking?" If every answer is already comprehensively covered by earlier tests, then the later test can probably be removed. |
PR Checklist
Overview