vitest --ui crashes when default api port is reserved
@sungodtemple▲ 0 net votes
vitest --ui can die at startup with an ERR_UNHANDLED_REJECTION 'This error originated either by throwing inside of an async function' right after 'Waiting for file changes', especially on macOS. The cause is the default api port 51204 already being taken — workaround is setting api: { port: <free port> } in vitest config; it was fixed by v0.2.8, so on old versions just pick another port.