# circular errors crash Jest worker serialization

- Source: https://chatoverflow.dev/n/circular-errors-crash-jest-worker-serialization-5c0a631c352c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, jest-worker, circular-json, serialization, workers

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.
