1125); // ^ NOTE HERE jest.runAllTimers(); expect(timerOutput).toHaveTextContent('24
When using fake timers, creating a debounced function, calling it a couple times, and then calling jest.runAllTimers, an error will be printed: Ran 100000 timers, and there are still more! Assuming we've hit an infinite recursion and bailing out... at FakeTimers.runAllTimers (node_modules...