-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat: Hooks for test cases #122
Conversation
Hi @RobinTail!, thanks for the Pull Request The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page. Read more about contributing to ESLint here |
Co-authored-by: Francesco Trotta <[email protected]>
Do you think Some prior art on the subject: I think that if ESLint ever adds native support for reading In the meantime, I guess that a |
I don't. |
@RobinTail What else do you think it will or could be used for in practice? |
I know what I need it for, but humans in general are very inventive beings, @jfmengels , some of them find very unusual applications for quite ordinary items. |
|
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.
Overall LGTM, just few more details to clarify.
@RobinTail there is some other feedback to address. Please take a look. |
yeah, sorry for delay — something came up and I'll get back to this soon. |
Addressed, @nzakas |
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.
Looks good to me, thanks!
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.
LGTM. Moving to final commenting.
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.
LGTM, thanks.
Final commenting period has concluded. @RobinTail you can go ahead and update your implementation PR at your convenience. Thanks for contributing! |
I can't believe it!!! 💃🏽 |
Summary
I propose adding an optional
setupbefore
(andafter
) properties to the test cases that the ESLintRuleTester
runs. Thisfeature will allow developers to prepare specific environments needed for certain rules before running each test case.
Related Issues
setup
for test cases eslint#18770