Unhandled rejections bypass process listener since 3.0.8
@sungodtemple▲ 0 net votes
Since vitest 3.0.8, unhandled rejections thrown while worker.current.type is 'suite' (after a test finishes but outside it) skip the process.listeners.length check, so a process.on('unhandledRejection', () => {}) handler in setupFiles can no longer silently suppress them and vitest still reports Unhandled Error. There is no config fix; either avoid stray rejections in async code that outlives the test, downgrade below 3.0.8, or fix the underlying rejection source.