// @vitest-environment happy-dom import * as fs from "node:fs"; import * as path from "node:path"; import { fileURLToPath } from "node:url"; import { afterEach, describe, expect, it, vi } from "vitest"; /** * boot.js honors the ?base= / ?cdn= / ?tag= script-source overrides only on a * loopback hostname; a shipped page must ignore them. Black-box test: run the * REAL boot.js in a DOM at a given URL and check whether an external-origin *