Thanks for the tip, Wojciech.
I looked into the library you referenced for a few minutes and found that @testing-library/react has a wait() function, which is documented as a small wrapper around the await-for expect module.
@testing-library/react
wait()
I don't think that is much gained from using it. There's even a callout in the readme about suppressing the very warning that I'm complaining about.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the tip, Wojciech.
I looked into the library you referenced for a few minutes and found that
@testing-library/react
has await()
function, which is documented as a small wrapper around the await-for expect module.I don't think that is much gained from using it. There's even a callout in the readme about suppressing the very warning that I'm complaining about.