chore: migrate from jsdom to happy-dom for testing environment

This commit is contained in:
Amruth Pillai
2026-05-10 20:46:28 +02:00
parent b321e01658
commit 7a60a42a04
15 changed files with 114 additions and 316 deletions
+15 -1
View File
@@ -27,10 +27,24 @@ export const createVitestProjectConfig = ({
test: {
name,
environment,
environmentOptions: {
happyDOM: {
settings: {
disableJavaScriptFileLoading: true,
disableCSSFileLoading: true,
navigation: {
disableMainFrameNavigation: true,
disableChildFrameNavigation: true,
disableChildPageNavigation: true,
},
},
},
},
setupFiles: [setupFile],
include: ["src/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
exclude: ["node_modules", "dist", ".output", "coverage", "reports"],
pool: "forks",
pool: "threads",
isolate: false,
passWithNoTests: true,
coverage: {
provider: "v8",