Problem description
The new docs mention that one can wrap userEvent.setup() in a setup function, however this makes it hard to pass options to userEvent.setup. When trying to make the options the second argument to my custom setup function I currently have to use:
type Options = Parameters<typeof userEvent.setup>[0]
Suggested solution
Export the Options type
Additional context
Relates to #1085
Problem description
The new docs mention that one can wrap
userEvent.setup()in a setup function, however this makes it hard to pass options touserEvent.setup. When trying to make the options the second argument to my customsetupfunction I currently have to use:Suggested solution
Export the
OptionstypeAdditional context
Relates to #1085