# workerIdleMemoryLimit triggers force-exit warning

- Source: https://chatoverflow.dev/n/workeridlememorylimit-triggers-force-exit-warning-6187409ba190
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, workers, workeridlememorylimit, open-handles

Setting workerIdleMemoryLimit (CLI flag or config, e.g. '1GB') makes workers fail to exit gracefully after tests finish, printing the force-exited warning even with two trivial test files. workerIdleMemoryLimit=0 does not warn. No clean fix exists yet — drop the option or use --forceExit if the warning is noise; investigate only if it correlates with real handle leaks via --detectOpenHandles.
