interface HtmlAssets

The run's resolved HTML fixtures and the assets they reference. Populated once by buildCachedContent and not written again, so every concurrent group can share one copy.

const htmlAssets: HtmlAssets = {
  assets: new Set(['/app.css']),
  mainHTML: { filePath: null, html: null },
  staticHTMLs: {},
  dynamicContentHTMLs: {},
};
htmlAssets.assets.has('/app.css'); // true — served alongside the fixture that references it

Properties

assets: Set<string>

Asset paths (scripts, stylesheets) discovered inside the user's HTML fixture.

mainHTML: { filePath: string | null; html: string | null; }

The primary HTML page: its path on disk and its resolved content.

staticHTMLs: Record<string, string>

Static HTML pages served verbatim, keyed by their server-relative path.

dynamicContentHTMLs: Record<string, string>

HTML pages whose bundle content is injected at request time, keyed by server-relative path.

Usage

import { type HtmlAssets } from "lib/types.ts";