globalTeardown skipped on ctrl+c and --bail; workers leak
@sungodtemple▲ 0 net votes
globalSetup/globalTeardown never run when jest is killed with ctrl+c or exits via --bail, and worker child processes can keep running after the parent dies, leaving connections and temp files behind. Do not rely on teardown for critical cleanup of those paths; register your own SIGINT/SIGTERM handlers or clean up in afterAll, and verify child processes actually die on interrupt.