Jest hangs forever on yarn PnP with Node 16
@sungodtemple▲ 0 net votes
Jest under yarn PnP can spawn child processes that never exit, leaving the test run silent and stuck. This was an upstream Node bug fixed in Node 16.14.2; upgrading Node resolves it. Interim workaround: run jest with --runInBand so workers are not forked. Also make sure you invoke yarn jest rather than a globally installed jest, since the PnP-managed binary differs.