PforceExit
Bun

property

test.default.RunOptions.forceExit

forceExit?: boolean

Configures the test runner to exit the process once all known tests have finished executing even if the event loop would otherwise remain active.