import { resolveBin } from "./release-lib"; import { assertValidPlaywrightJsonReport } from "./release-gate"; const chromeResult = Bun.spawnSync([ resolveBin("playwright"), "test", "--project=chrome-release", "--reporter=json", ], { stdout: "pipe", stderr: "inherit", env: { ...process.env, PEACH_RELEASE_BROWSER_GATE: "1" }, }); if (chromeResult.exitCode !== 0) { process.stderr.write(chromeResult.stdout); process.exit(chromeResult.exitCode); } assertValidPlaywrightJsonReport(JSON.parse(chromeResult.stdout.toString())); for (const script of [ "scripts/test-firefox-sender-context.mjs", "scripts/test-firefox-passkeys.mjs", ]) { const firefoxResult = Bun.spawnSync([script.endsWith("test-firefox-passkeys.mjs") ? process.execPath : "node", script], { stdout: "inherit", stderr: "inherit", env: process.env, }); if (firefoxResult.exitCode !== 0) process.exit(firefoxResult.exitCode); }