3
Gitlab CIでJestテストを実行しようとしています。 テストは、ローカルに成功するが、私はGitlab CI上でそれらを実行すると、私は次のエラーを取得する:Gitlab CIでJestjsテストが失敗する
Test suite failed to run
ProcessTerminatedError: cancel after 2 retries!
at Farm.<anonymous> (node_modules/worker-farm/lib/farm.js:81:25)
at Array.forEach (native)
at Farm.<anonymous> (node_modules/worker-farm/lib/farm.js:75:36)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
A worker process has quit unexpectedly! Most likely this is an
initialization error.
error Command failed with exit code 1.
私は--runInBandオプションを追加しようとしたが、これはセグメンテーション違反になります。私も--maxWorkersオプションを試しましたが、同じエラーが発生します。任意のアイデアはどのようにこの問題を解決するには?