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
commit 8864fdce2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 245 additions and 171 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",