t3-code-android-nightly/.repos/alchemy-effect/packages/frontend-frameworks/fixtures/nextjs/scripts/e2e.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

20 lines
1 KiB
JavaScript

// The OpenNext build copies the NFT-traced node_modules into
// `.open-next/server-functions/default/node_modules`. Under bun's isolated
// linker that tree is built from `.bun` store junctions, and the copy leaves
// them broken on Windows — esbuild's final bundle pass then fails with
// `Cannot read directory ".open-next/.../node_modules/.bun/.../react": Access
// is denied`. Skip the e2e on Windows until the copy re-materializes
// junctioned directories (upstream OpenNext has the same constraint).
import { execSync } from "node:child_process";
if (process.platform === "win32") {
console.log(
"packages/frontend-frameworks/fixtures/nextjs e2e skipped on Windows: OpenNext build cannot traverse bun-store junctions (see scripts/e2e.mjs).",
);
process.exit(0);
}
// `bun run` puts the fixture's node_modules/.bin on PATH, so playwright
// resolves from the fixture (a bare `bun x playwright` can load the parent
// workspace's copy and die with "Requiring @playwright/test second time").
execSync("bun run test:e2e", { stdio: "inherit" });