You did not provide enough information, because of the error you are calling a route that has no answer, jest is looking for an end but as he has no or has not found it ends up running infinitely.