Skip to content

Do I need await before every userEvent call? #1050

Answered by ph-fritsche
wuarmin asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/testing-library/user-event/releases/tag/v14.0.0

14.0.0 (2022-03-29)

⚠ BREAKING CHANGES

  • APIs always return a Promise.

The change was discussed in #504

How a test with v14 should look like is documented at https://testing-library.com/docs/user-event/intro#writing-tests-with-userevent

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@wuarmin
Comment options

@ph-fritsche
Comment options

@wuarmin
Comment options

Answer selected by wuarmin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants