import { resolveBin } from "./release-lib"; import { assertValidPlaywrightJsonReport } from "./release-gate"; const result = Bun.spawnSync([resolveBin("playwright"), "test", "--project=chrome-release", "--reporter=json"], { stdout: "pipe", stderr: "inherit", env: { ...process.env, PEACH_RELEASE_BROWSER_GATE: "1" }, }); if (result.exitCode !== 0) process.exit(result.exitCode); assertValidPlaywrightJsonReport(JSON.parse(result.stdout.toString()));