" Too long with no output (exceeded 10m0s): context deadline exceeded"

Hello, I’ve been scouring the internet for a solution to the above problem in vain. My tests pass when run locally and in the Circle CI test, but the process fails with the error shown above.
Is there a workaround for this?

Config.yml → expressAPI/config.yml at main · Dev-Elie/expressAPI · GitHub

Hi @Dev-Elie ,

Thank you for sharing your issue on the forum!

The Too long with no output error will appear when a process hangs, and no further output is generated before the timeout limit is reached (default is 10 minutes). In this case, increasing the timeout limit will not help if the process never exits.

One thing I would like to have you try is to change the command in this step to the following as it should give you more information as to what is hanging:

npm test --forceExit

Following that, you can try to adjust your tests to see if that fixes it.

It seems that running it with the option --watchAll causes it to hang for some reason after finishing all of the tests.

Best Regards

1 Like

@aaronclark Thanks for the solution.
Replacing “test”: “jest --watchAll --detectOpenHandles”
with “test”: “jest” did the trick. :+1:

1 Like

Thank you for the update. Glad to hear you found a solution that worked! :grinning:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.