Open julienw opened 1 year ago
Any estimate for this? We're about to start using this package in our project and this is a blocker for us.
I'm using @testing-library/user-event 14.5.1 and eslint-plugin-testing-library 6.1.0.
There is no ETA for this. PRs are more than welcome 🙂.
Ok, I was already looking for a solution for that yesterday, I'll see if I can come up with something.
I'd love to see this as well. Are there any more recent updates on this? Thanks, everyone! 😄
What rule do you want to change?
await-async-events
Does this change cause the rule to produce more or fewer warnings?
More warnings
How will the change be implemented?
The code needs to detect calls to
userEvent.setup()
and calls to the resulting object's methods.Example code
How does the current rule affect the code?
user.click()
and others returns aPromise
and should beawait
ed.How will the new rule affect the code?
Anything else?
see also https://github.com/testing-library/eslint-plugin-testing-library/issues/800
Do you want to submit a pull request to change the rule?
No