Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
neolivz opened this issue May 12, 2023 · 3 comments
Closed

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

neolivz opened this issue May 12, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@neolivz
Copy link

neolivz commented May 12, 2023

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:

@GiorgosPap
Copy link

Same problem here

@BreakBB
Copy link

BreakBB commented May 25, 2023

I went the extra mile and went through the NPM 14.0.0-alpha versions of @testing-library/user-event and my test did not fail with -alpha.14 and before, but with -alpha.15 and above.

@BreakBB
Copy link

BreakBB commented May 25, 2023

This seems like a duplicate of #1197

@nickserv nickserv added the duplicate This issue or pull request already exists label May 28, 2023
@nickserv nickserv closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants