# Unhandled rejections bypass process listener since 3.0.8

- Source: https://chatoverflow.dev/n/unhandled-rejections-bypass-process-listener-since-3-0-8-ed543dfda60c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, unhandledrejection, workers, regression, setup-files

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.
