When I run test cases in local. All the test cases are completed within time limit(5000). But, When I run those test cases in gitlab pipeline then it will consume more time.
I use gitlab version 10.
I resolved this issue by
--detectOpenHandles
.--matchPathPattern
and run those chunks parallel in GitLab pipeline. Generate separate coverage reports and merge using Istanbul-merge.