test: fix node.js 25 compatibility

This commit is contained in:
Alex Yang
2025-11-11 16:56:56 -08:00
parent 3bfc525f95
commit bc505c0bb5
2 changed files with 0 additions and 8 deletions
-1
View File
@@ -2,7 +2,6 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
setupFiles: ["./vitest.setup.ts"],
poolOptions: {
forks: {
execArgv: ["--expose-gc"],
-7
View File
@@ -1,7 +0,0 @@
if (
typeof globalThis.localStorage !== "undefined" &&
+process.versions.node.split(".")[0]! >= 25
) {
// @ts-expect-error
globalThis.localStorage = undefined;
}