-
Notifications
You must be signed in to change notification settings - Fork 148
False positives on await-async-query
and no-await-sync-query
#122
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! Looks like #137 was merged but this issue is still valid, right? (Just to double check 😇) |
Yes, it was only fixed for |
I'm seeing this as well. Also |
Yes, still pending to fix About I hope I can find some time soon to fix those, specially the |
As of today, there are two rules that have similar implementations: #137 seems to have fixed
WDYT? |
I'd prefer go for 2 to leave those 2 rules separated for now. |
Option 2 sounds good to me. I'll work on it in the next few days 👍 |
🎉 This issue has been resolved in version 3.4.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Related to #120, #114
Since we are checking testing library queries when calling queries member expressions for
await-async-query
andno-await-sync-query
, we are getting some false positives in some cases:findByTestId
in enzyme tests in a codebase mixing both enzyme and testing library)The main issue here is that we are checking the queries methods in every single file no matter where the method is coming from, but we should only check those imported from testing library or returned by something imported from testing library. However, I think a first approach could be at least check if testing library is imported in the file to check the methods or not.
The text was updated successfully, but these errors were encountered: