import { describe, expect, test } from "bun:test"; import { renderToStaticMarkup } from "react-dom/server"; import { BUG_URL, Colophon, FEATURE_URL, bugReportUrl, } from "../src/client/components/Colophon.tsx"; /** * The issue forms, and the app's links into them. * * These pin a seam nothing else can see: GitHub answers a malformed form with a * rendered error only a visitor notices, and it drops a prefill parameter that * names no field with no error at all. Both failures look exactly like a working * link from here, so the only place they can be caught is a test that reads the * YAML the links point at. * * Reads repo files, never build output — see AGENTS.md § Commands. */ const DIR = ".github/ISSUE_TEMPLATE"; type Field = { type: string; id?: string; attributes?: { label?: string }; validations?: { required?: boolean }; }; type Form = { name?: string; description?: string; labels?: string[]; body?: Field[] }; async function form(file: string): Promise