eslint-plugin-testing-library/await-async-events for method calls on user-event instances created with setup() #1072
Unanswered
spicattutti
asked this question in
Q&A
Replies: 1 comment
-
Hey @spicattutti! If you are using TS, what about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
await-async-events
does not enforce missing awaits foruser.click()
(whereuser
is created like shown above, only for the case of using exported APIsProblem
click
,type
etc using TS and eslint without enablingrequire-await
, which would be painful to enableTS test helpers:
eslint config:
userEvent
object in our test helper in case of no override for options, because the setup call is recommended, as mentioned aboveQuestion
Has anyone solved this?
Beta Was this translation helpful? Give feedback.
All reactions