'Jest test stuck on bitbucket pipelines without any error

We use Bitbucket pipelines in our CI for testing, Our application is NestJS with Typescript tested with Jest.

We always got all tests running, however few days from now (2022 may) the tests are stuck after some suit, the suite where the test stuck is quite random.

The tests dont fail, we dont have any memory warning or anything else, it just is stucked on the pipeline. We need to stop the pipeline because it never stop.

Unfourtunately we dont any error for furgher investigation.

What could we do to inspect more details?



Solution 1:[1]

I am also facing the same issue, npm run test step in our bitbucket pipeline takes more than 50min, but if we stop and rerun it completes within 2min.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sunil Linga