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
Hi @Brianzchen! Thanks for reporting, interesting issue. This is definitely a bug and the rule should discard the statements within .then from waitFor promise.
sjarva
added a commit
to sjarva/eslint-plugin-testing-library
that referenced
this issue
Sep 12, 2022
Plugin version
v4.10.1
ESLint version
v7.31.0
Node.js version
v12.17.0
npm/yarn version
yarn 1.22.10
Operating system
macOS 10.14.6
Bug description
When I use
fireEvent
within a.then()
ofwaitFor
it throws an errorSteps to reproduce
Basically what's shown in the screenshot. I prefer to use
.then()
as opposed to async await but it throws errors when it shouldn'tError output/screenshots
No response
ESLint configuration
A few private stuff but the rule sets are
Rule(s) affected
testing-library/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: