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
When writing Vue tests, I get no warning when I use side effects within with waitFor call-back if I await them.
Steps to reproduce
// Component.spec.tsximport{screen,fireEvent,waitFor}from"@testing-library/vue";it("some test",async()=>{awaitwaitFor(async()=>{// I expect the warning 'Avoid using side effects within `waitFor` callback'awaitfireEvent.click(screen.getByTestId("something"));});});
Have you read the Troubleshooting section?
Yes
Plugin version
v5.10.2
ESLint version
v8.13.0
Node.js version
18.13.0
package manager and version
npm 8.19.3
Operating system
Windows Version 10.0.19044 Build 19044
Bug description
When writing Vue tests, I get no warning when I use side effects within with waitFor call-back if I await them.
Steps to reproduce
Error output/screenshots
No response
ESLint configuration
Rule(s) affected
no-wait-for-side-effects
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: