// tests/scripts/annotate.test.mjs
// Covers scripts/annotate.mjs — the v5.0.2 operator-annotation HTML
// generator. The producing commands call it to print a file:// link the
// operator opens in a browser, where they click lines, write their own
// notes, copy a structured prompt, and paste back into Claude.
//
// What we pin:
// • Output is a complete, self-contained HTML document.
// • Zero external network references in the static HTML.
// • The embedded inline "\n---\n\n# Foo\n';
const html = buildHtml('/abs/path/brief.md', md);
// The raw