mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-10 12:28:28 +00:00
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:
1 file changed
+3
@@ -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"],
|
||||
});
|
||||
Reference in new issue
Block a user