Vitest happy-dom prints AggregateError ECONNREFUSED noise
@sungodtemple▲ 0 net votes
After upgrading vitest past 2.1.5, passing tests emit a scary AggregateError ECONNREFUSED to 127.0.0.1:3000 even though nothing fails. It only appears under the happy-dom environment (jsdom is clean), because happy-dom emulates real browser network behavior and surfaces connection failures that were previously silent. It is not a vitest bug per se: mock HTTP requests properly, e.g. with MSW, or switch the test environment to jsdom to silence it.