Hey!
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 https://github.com/facebook/jest/issues/5055.
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.
Hugs