Skip to content
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

error when updating to jest 27 #710

Closed
eagleera opened this issue Aug 3, 2021 · 3 comments
Closed

error when updating to jest 27 #710

eagleera opened this issue Aug 3, 2021 · 3 comments

Comments

@eagleera
Copy link

eagleera commented Aug 3, 2021

  • @testing-library/user-event version: 13.2.1
  • Testing Framework and version:
    • "@testing-library/jest-dom": "^5.14.1",
    • "@testing-library/react": "^12.0.0",
    • "@types/jest": "^26.0.24",
    • "ts-jest": "^27.0.4"
    • "jest": "^27.0.6",
  • DOM Environment: jsdom

Relevant code or config

import userEvent from '@testing-library/user-event';
userEvent.click(playButton);

What you did: I was trying to update jest to 27 version resulting in this error, I think it might be related to this issue testing-library/react-testing-library#918

What happened:
Screen Shot 2021-08-03 at 12 06 13

Reproduction repository:

Problem description: when updating to jest 27, there's an error with clearImmediate

Suggested solution:

@ph-fritsche ph-fritsche added the needs investigation Someone has to do research on this label Aug 3, 2021
@ph-fritsche
Copy link
Member

Could anyone reproduce this? We are using jest27 ourselves without any errors.

@mrdaniellewis
Copy link

This happened to me. Installing @testing-library/dom alongside @testing-library/react resolved it.

@ph-fritsche
Copy link
Member

ph-fritsche commented Oct 7, 2021

Looks like this is (at least not directly) related to userEvent. There is no reference to clearImmediate in this lib.

@mrdaniellewis Could you provide more information in which setting this occured?

Maybe an earlier version of @testing-library/dom did.

@ph-fritsche ph-fritsche removed the needs investigation Someone has to do research on this label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants