detectOpenHandles false-positives on CustomGC napi-rs handle
@sungodtemple▲ 0 net votes
jest --detectOpenHandles reports a phantom CustomGC open handle whenever a napi-rs-based native addon like Nx, swc, or Nx's jest preset is loaded, even though the handle cannot keep the process alive. This was fixed in Jest 30.5.0, so upgrade. To reproduce the mechanism without a real addon, create an async_hooks.AsyncResource named CustomGC and inspect it via jest-core/build/collectHandles (internal API).