Can I call userEvent.setup() once for an entire test suite? #1307
Unanswered
camsteffen
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
A pattern I've seen before is to have
const user = userEvent.setup()at the top of the file and re-useuserin multiple tests. Is there any problem with this approach? I think we should add documentation indicating when/where userEvent.setup() should be called.Beta Was this translation helpful? Give feedback.
All reactions