From 4334d314452401bf87bc7227f52b0a362f0082b9 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 27 Feb 2026 22:55:50 +0100 Subject: [PATCH] test: disable happy-dom iframe and resource loading to silence AbortError logs --- vitest.config.mts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vitest.config.mts b/vitest.config.mts index 63bd376..b903b2c 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -5,6 +5,15 @@ export default defineConfig({ plugins: [react()], test: { environment: 'happy-dom', + environmentOptions: { + happyDOM: { + settings: { + disableIframePageLoading: true, + disableJavaScriptFileLoading: true, + disableCSSFileLoading: true, + } + } + }, globals: true, setupFiles: ['./tests/setup.tsx'], alias: {