testing-library/await-async-queries
false positives with optional chaining ?.
#882
Labels
bug
Something isn't working
Have you read the Troubleshooting section?
Yes
Plugin version
6.2.0
ESLint version
8.45.0
Node.js version
18.16.0
package manager and version
yarn 1.22.19
Operating system
Windows 10 Enterprise version 22H2
Bug description
await renderResult?.findBy*
is reporting testing-library/await-async-queries, even though the query is in fact getting awaitedSteps to reproduce
expect
, when we are in fact awaiting the returned promise of findByTextError output/screenshots
No response
ESLint configuration
Rule(s) affected
testing-library/await-async-queries
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: