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
+2
View File
@@ -1,6 +1,7 @@
import { availableParallelism } from 'node:os'
import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vitest/config'
import { vitestExecArgv } from './vitest.shared.ts'
const DEFAULT_SNAPSHOT_MAX_CONCURRENCY = 5
@@ -41,6 +42,7 @@ export default defineConfig({
// this (the root tsconfig is a solution file with no paths).
plugins: [tsconfigPaths({ projects: ['./tsconfig.base.json'] })],
test: {
execArgv: vitestExecArgv,
setupFiles: ['./scripts/test-invariants.ts'],
include: [
'scripts/**/*.snapshot.ts',