// The HTML report (--html ): one self-contained page per run of snapshot, diff
// or session. No script and nothing fetched, so it opens offline from a CI artifact.
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { copyFileSync, readFileSync } from 'node:fs';
import { join } from 'node:path';
import { diffHtml, esc, sessionHtml, snapshotHtml } from '../dist/html.js';
import { comparedTools, diffMenus } from '../dist/diff.js';
import { stepMenu } from '../dist/session.js';
import { FIXTURES, ROOT, menuOf, run, tempDir, tool } from './helpers.mjs';
const menus = join(FIXTURES, 'menus');
/** Self-contained: one document, no script, nothing loaded from elsewhere. */
function assertStandalone(html) {
assert.match(html, /^\n/);
assert.doesNotMatch(html, /