fix(test): isolate jsdom storage on Node 26

This commit is contained in:
Turtle
2026-07-30 21:49:33 +08:00
parent 5335d61d11
commit f04b35c6a4
15 changed files with 116 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
/**
* Worker arguments that keep process-wide Web Storage from shadowing jsdom storage.
* Node lists the positive spelling in `allowedNodeEnvironmentFlags` for this negatable flag.
*/
export const vitestExecArgv = process.allowedNodeEnvironmentFlags.has('--webstorage') ? ['--no-webstorage'] : []