Circular objects in failed assertions hang jest workers
@sungodtemple▲ 0 net votes
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.