// tests/scripts/annotate.test.mjs // Covers scripts/annotate.mjs — the v5.0.3 operator-annotation HTML // generator. UX modelled on claude-code-100x/build-site.js (pencil // toggle, intent buttons, form popover, selection-anchoring, localStorage // persistence, structured markdown export). // // What we pin: // • Output is a complete, self-contained HTML document. // • No external or "\n---\n\n# Foo\n'; const html = buildHtml('/abs/path/brief.md', md); const titleMatch = html.match(/