Skip to content

14.0.0 gets stuck on await user-event with with vitest fake timer #1211

@neolivz

Description

@neolivz
  • @testing-library/react version: 14.0.0
  • Testing Framework and version: vitest@0.31.0
  • DOM Environment: @testing-library/jest-dom@5.16.5
  • Other libraries: @testing-library/user-event@14.4.3

Relevant code or config:

    await user.click(screen.getByTestId("toggle-button"));

What you did:

Update @testing-library/react version from 13.4.0 to 14.0.0

What happened:

Test started failing

Reproduction:

https://codesandbox.io/p/sandbox/relaxed-water-1bm3wr?welcome=true
Run pnpm test
The test fails as long as the @testing-library/react version is 14.0.0 and works fine with 13.4.0

Problem description:

Suggested solution:

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions