t3-code-android-nightly/.repos/alchemy-effect/packages/frontend-frameworks/fixtures/nextjs-isr/playwright.config.mjs
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00

38 lines
1.3 KiB
JavaScript

import { defineConfig } from "@playwright/test";
export default defineConfig({
tsconfig: "../tsconfig.playwright.json",
testDir: "./test",
// Windows CI runs every fixture e2e concurrently; absorb runner flakiness.
retries: process.env.CI ? 2 : 0,
// Retries x timeout inflation makes a truly-broken suite take ~25 minutes
// to fail on CI; bail after a handful of failures instead.
maxFailures: process.env.CI ? 5 : 0,
// The dev worker fixture runs a full OpenNext build on start (preview
// parity — no build.json reuse), so keep generous timeouts.
timeout: 120_000,
// Serialize workers: the dev fixture's OpenNext build rewrites
// `.open-next/assets` on disk, which a concurrently-running live
// (miniflare) worker serves from — parallel workers race on it.
workers: 1,
expect: {
timeout: 10_000,
},
build: {
// The hmr spec runs `next dev` inside the playwright worker process;
// keep playwright's babel require-hook away from Turbopack's dev chunks
// (their sectioned source maps break it with BABEL_GENERATE_ERROR).
external: ["**/.next/**"],
},
projects: [
{
name: "chromium",
use: {
browserName: "chromium",
colorScheme: "light",
deviceScaleFactor: 1,
viewport: { width: 1280, height: 720 },
},
},
],
});