userEvent.hover
returns a promise - no-await-sync-events
vs no-floating-promises
reasoning
#804
Labels
question
Further information is requested
Have you read the Troubleshooting section?
Yes
Plugin version
v6.0.0
ESLint version
v8.47.0
Node.js version
18.17.1
package manager and version
npm 9.6.7
Operating system
macOS Ventura, version 13.5.1
Bug description
For

userEvent.hover
no-await-sync-events rule reports that it's a sync event, from what I assume the typings could be wrong?Not sure how much benefits does no-await-sync-events rule brings, since we already have no-floating-promises from typescript-eslint package.
When
await
keyword is being removed, no-floating-promises rule of course fails since type definition is indicating that hover function is returning a promise.Steps to reproduce
npm i
npm run lint
-> no erroreslint-plugin-testing-library
tov6.0.0
npm i
npm run lint
-> errorError output/screenshots
If we remove

await
ESLint configuration
Rule(s) affected
https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-await-sync-events.md
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: