Merge pull request #5998 from mikeyhenein/vitest-node25

Frontend tests: disable Node's built-in localStorage so vitest works on Node 25+
This commit is contained in:
jc21 authored and GitHub committed 2026-11-04 14:41:54 +10:00
commit bea51343ef
1 file changed
+3
+3
View File
@@ -57,6 +57,9 @@ export default defineConfig({
test: {
environment: "happy-dom",
setupFiles: ["./vitest-setup.js"],
// Node 25+ has a built-in global localStorage (undefined without
// --localstorage-file) that shadows happy-dom's; turn it off.
execArgv: ["--no-experimental-webstorage"],
},
assetsInclude: ["**/*.md", "**/*.png", "**/*.svg"],
});