Jest timeout error [Solved]


I lost some time trying to solve a Jest error that said "async-callback-was-not-invoked-within-the-5000ms-timeout-specified-by-jest-setti".

The solution is to use an extra argument in the test so that it does not take the default time to make the asynchronous calls, as indicated in this github

In case someone else happens, do not waste so much time trying the test over and over again. The test will throw different results for each time it is executed.


1 Like

Hi @FAlberto

Thanks for sharing and happy to hear you were able to resolve your issue.

Kindest regards,

Hi, thank you so so much. I really struggled with the first Projection task, and basically what happened was that I had it correct almost from the beginning but it was failing on the timeout.