Skip to content

Add a way to clean up userEvent after a test #1280

Open
@brynshanahan

Description

@brynshanahan

Problem description

Introducing testing-library/user-event into a single test has started causing some unrelated tests to fail in another part of the codebase (tests dealing with focus specifically)

Suggested solution

It would be great if I could call userEvent.setup() in my test and then have a user.destroy() or userEvent.destroy() method to call after the test is complete

Additional context

No response

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