test: disable happy-dom iframe and resource loading to silence AbortError logs
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🧪 QA (push) Successful in 2m22s
Build & Deploy / 🏗️ Build (push) Successful in 4m48s
Build & Deploy / 🚀 Deploy (push) Failing after 11s
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-02-27 22:55:50 +01:00
parent 1559037029
commit 4334d31445

View File

@@ -5,6 +5,15 @@ export default defineConfig({
plugins: [react()], plugins: [react()],
test: { test: {
environment: 'happy-dom', environment: 'happy-dom',
environmentOptions: {
happyDOM: {
settings: {
disableIframePageLoading: true,
disableJavaScriptFileLoading: true,
disableCSSFileLoading: true,
}
}
},
globals: true, globals: true,
setupFiles: ['./tests/setup.tsx'], setupFiles: ['./tests/setup.tsx'],
alias: { alias: {