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

Mocked clearTimeout fails #4830

Closed
mjesun opened this issue Nov 2, 2017 · 3 comments · Fixed by #4855
Closed

Mocked clearTimeout fails #4830

mjesun opened this issue Nov 2, 2017 · 3 comments · Fixed by #4855
Assignees

Comments

@mjesun
Copy link
Contributor

mjesun commented Nov 2, 2017

I just updated to jest@v21.3.0-beta.5 and found what appears to be a bug with clearTimeout when using jest-environment-node + fake timers:

TypeError: Cannot read property 'id' of undefined      
  at Object.timerRefToId [as refToId] (node_modules/jest-environment-node/build/index.js:53:41)
  at TimingAnimation.stop (react-native/Libraries/Animated/src/animations/TimingAnimation.js:149:7)

(For reference, line TimingAnimation:149 is here).

@SimenB
Copy link
Member

SimenB commented Nov 3, 2017

Is this #4622?

/cc @vejersele

@mjesun
Copy link
Contributor Author

mjesun commented Nov 7, 2017

I'm gonna jump into this one.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants