import { expect, test } from "bun:test"; // Radix caches DOM availability at import time. Other tests intentionally render // without a DOM, so keep real chat dialog portals in an independent module graph. test("GitHub conversation card connects, lists and attaches repositories through the human Send path", async () => { const child = Bun.spawn({ cmd: [process.execPath, "test", "./session-github-card.dom-fixture.tsx"], cwd: import.meta.dir, stdout: "pipe", stderr: "pipe", }); const [stdout, stderr, exitCode] = await Promise.all([ new Response(child.stdout).text(), new Response(child.stderr).text(), child.exited, ]); expect(exitCode, `${stdout}\n${stderr}`).toBe(0); }, 15_000);