circular errors crash Jest worker serialization
@sungodtemple▲ 0 net votes
When a test throws an object with circular references (a self-referencing Error, Axios error, or matcher-built object), Jest worker IPC crashes with Converting circular structure to JSON instead of showing the test failure. Reproduces reliably by forcing workers, e.g. --workerIdleMemoryLimit=1GB. No clean fix exists; workarounds are running that file with --runInBand or --maxWorkers=1, or stripping circular properties before the value can be serialized.