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

Add helpful error message to TimerMocks #10184

Closed
wants to merge 1 commit into from

Conversation

jonathanconway
Copy link

@jonathanconway jonathanconway commented Jun 22, 2020

Summary

Help the reader to understand the context in which jest.runOnlyPendingTimers() is useful, by referring to the error that gets thrown when the timers are in an endless loop.

Help the reader to understand the context in which `jest.runOnlyPendingTimers()` is useful, by refering to the error that gets thrown when the timers are in an endless loop.

For these, running all the timers would be an endless loop, throwing the following error:

```Ran 100000 timers, and there are still more! Assuming we've hit an infinite recursion and bailing out...```
Copy link
Member

@SimenB SimenB Jun 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you run prettier on this file?

@SimenB
Copy link
Member

SimenB commented Feb 24, 2022

Landed in #12248

@SimenB SimenB closed this Feb 24, 2022
@github-actions
Copy link

This pull request 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 Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants