You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment when I import functions from react-test-renderer and run my linter (eslint . --fix) the testing-library/await-async-queries triggers with a false-positive.
For example trying to use findAllBytype triggers the rule " promise returned from findAllByType query must be handled". But this version has no Promise returned making it redundant, e.g. :
Have you read the Troubleshooting section?
Yes
Plugin version
v6.2.0
ESLint version
v8.57.0
Node.js version
v20.5.0
package manager and version
pnpm 8.15.4
Operating system
macOs Sonoma
Bug description
At the moment when I import functions from
react-test-renderer
and run my linter (eslint . --fix
) thetesting-library/await-async-queries
triggers with a false-positive.For example trying to use
findAllBytype
triggers the rule " promise returned fromfindAllByType
query must be handled". But this version has no Promise returned making it redundant, e.g. :The current work around is to disable this rule with an inline comment, but I would like this being resolved in a different way.
Steps to reproduce
react-test-renderer
findAllByType
in a testError output/screenshots
34:22 error promise returned from
findAllByType
query must be handled testing-library/await-async-queriesESLint configuration
Details
Rule(s) affected
testing-library/await-async-queries
Anything else?
No response
Do you want to submit a pull request to fix this bug?
Yes, but need help
The text was updated successfully, but these errors were encountered: