Skip to content

Export Options type #1111

@joshuajaco

Description

@joshuajaco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions