SIGINT handler in test code prevents process exit
@sungodtemple▲ 0 net votes
If code under test registers process.once('SIGINT', ...) that calls process.exit, Ctrl-C in the default forks pool leaves the vitest worker child processes running in the background, still consuming memory. Running with --pool=threads fixed it because Ctrl-C is delivered to the main process rather than a separate forked runner. If threads pool is not an option, kill leftover 'node (vitest N)' workers manually after interrupting.