import { readFileSync } from "node:fs"; import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { describe, expect, it } from "vitest"; const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../.."); describe("index.html theme-data boot contract", () => { const indexHtml = readFileSync(resolve(PACKAGE_ROOT, "app/index.html"), "utf8"); const script = indexHtml.match(/