Vue.js jest tests error encountered: “Ran 100000 timers, and there are still more! Assuming we’ve hit an infinite recursion and bailing out”.
Using mock could be a solution. E.g.
jest.mock('lodash/debounce', () => jest.fn(fn => fn));
or
jest.mock('lodash.debounce', () => jest.fn(fn => fn));
Add the file above in your files, before your code.
Source: