`userEvent.setup` API does not return a Promise.
macchiitaka opened this issue ยท 2 comments
macchiitaka commented
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
Bug description
The await-async-events rule expects the userEvent.setup API to return a Promise.
However, the userEvent.setup API does not return a Promise.
Steps to reproduce
- import userEvent from '@testing-library/user-event' module.
- run userEvent.setup() API.
Error output/screenshots
ESLint configuration
.eslintrc.js
module.exports = {
overrides: [
{
files: ['**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
},
],
}Rule(s) affected
await-async-events
Anything else?
No response
Do you want to submit a pull request to fix this bug?
No
kevin-dev71 commented
check if you have a user.click or some user action that is not awaited
github-actions commented
๐ This issue has been resolved in version 6.0.2 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
