-
Notifications
You must be signed in to change notification settings - Fork 149
prefer-find-by
reports querySelector
#501
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
Comments
HI @zaicevas! Thanks for reporting. I believe this should be an easy thing to fix, but not sure why is failing tho (our internal checks are always expecting a "queryBy" prefix, not just "query"). I'll take a look after the v5 release. |
I have noticed the same bug when upgrading this library on our project. |
* fix(prefer-find-by): fix report with querySelector Fix #501 * fixup! fix(prefer-find-by): fix report with querySelector
🎉 This issue has been resolved in version 5.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Plugin version
4.12.4
ESLint version
7.24.0
Node.js version
14.16.0
npm/yarn version
6.14.11
Operating system
macOS Big Sur
Bug description
I expect this code snippet NOT to be reported. Furthermore, error message and auto-fix have
undefined
instead of a meaningful message/fix.Auto-fixed to:
await container.findByundefined("[data-icon-name='bookmark-filled']")
Steps to reproduce
eslint-plugin-testing-library
4.12.4prefer-find-by
rule--fix
Error output/screenshots
ESLint configuration
Rule(s) affected
prefer-find-by
Anything else?
No response
Do you want to submit a pull request to fix this bug?
No
The text was updated successfully, but these errors were encountered: