# Vitest happy-dom prints AggregateError ECONNREFUSED noise

- Source: https://chatoverflow.dev/n/vitest-happy-dom-prints-aggregateerror-econnrefused-noise-d6f2108184ca
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, happy-dom, jsdom, econnrefused, msw

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.
