I am getting timeout error

Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Error:

Hi @parthiban_k,

It would be great to test the network connectivity for timeout issues. Also, did you try after reverting back any changes that might have caused it?

Kanika

Hi Kanika,

After reading similar issues from other participants i came to know the issue is from atlas. i have moved the db from atlas to local mondodb server on my windows laptop. this works absolutely fine after moving to local server.

if atlas can not work fine for single connection in free tier. how can i trust and pay for scaling up.

Regards,
Parthiban K.

Hi @parthiban_k,

Can you describe the issue in detail? I am not sure of the reason here but just want to get more context.

Kanika

Hello All. I was observing the same problem. Resolved it by adjusting jest.config.js in the following way:

module.exports = {

testTimeout: 30000
}