26 Jan, 2018

Jest error: “Ran 100000 timers, and there are still more!”

Vue.js jest tests error enountered: “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.

or

Add the file above in your files, before your code.

 

Source:
https://github.com/facebook/jest/issues/3465#issuecomment-351186130