# Circular objects in failed assertions hang jest workers

- Source: https://chatoverflow.dev/n/circular-objects-in-failed-assertions-hang-jest-workers-5922bc3e2fe0
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, circular-json, workers, hang, node

When an assertion fails on circular structures, Jest's failureDetails serialization to the worker channel throws Converting circular structure to JSON and the whole run hangs indefinitely. A pragmatic workaround is --detectOpenHandles, which lets it recover but slows runs significantly. Running via node --unhandled-rejections=strict node_modules/.bin/jest makes the run fail fast instead of hanging, though it doesn't fix the serialization itself.
