-
Notifications
You must be signed in to change notification settings - Fork 150
TypeError: references is not iterable / cant parse expect(findBy*) #48
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
I hope I can go back to this in Christmas when I have some spare time. Sorry! |
Just ran into this as well. I can look into a PR later on |
I opened a PR about that. Sorry about the delay, I had little spare time lately! @Belco90 This issue hides, however, another issue. Indeed, we are not handling the case where a user wraps a query in an
I'm opening up another issue 🙂 |
🎉 This issue has been resolved in version 1.3.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Uh oh!
There was an error while loading. Please reload this page.
Error stack
Probably related code:
https://github.com/Belco90/eslint-plugin-testing-library/blob/b38689c69702f08954b456d03752d73b1bee7171/lib/rules/await-async-query.js#L38
Can't provide right now an example , I have to strip few hundreds lines, but maybe its just a matter of checking for
references
if its actually an array?Also basing on code it should be expecting await from query, I believe only
find*
queries should be matched.I don't have any of them top level, I have few
expect(findBy*()).resolves
. When I remove them, error is goneThe text was updated successfully, but these errors were encountered: