fix: Windows e2e stability (CrossSpawnSpawner, snapshot isolation, session race guards) (#19163)

This commit is contained in:
Kit Langton
2026-03-25 19:49:14 -04:00
committed by GitHub
parent 5179b87aef
commit 8864fdce2f
5 changed files with 246 additions and 172 deletions

View File

@@ -6,7 +6,8 @@ const serverHost = process.env.PLAYWRIGHT_SERVER_HOST ?? "127.0.0.1"
const serverPort = process.env.PLAYWRIGHT_SERVER_PORT ?? "4096"
const command = `bun run dev -- --host 0.0.0.0 --port ${port}`
const reuse = !process.env.CI
const workers = Number(process.env.PLAYWRIGHT_WORKERS ?? (process.env.CI ? 5 : 0)) || undefined
const workers =
Number(process.env.PLAYWRIGHT_WORKERS ?? (process.env.CI ? (process.platform === "win32" ? 2 : 5) : 0)) || undefined
export default defineConfig({
testDir: "./e2e",