import assert from "node:assert/strict"; import { readFile, readdir } from "node:fs/promises"; import path from "node:path"; import test from "node:test"; import vm from "node:vm"; import { browser } from "./locale-preference.test.mjs"; const root = path.resolve(import.meta.dirname, "../dist/public"); test("actual exported entry executes negotiation before body and exposes noscript links", async () => { const html = await readFile(path.join(root, "index.html"), "utf8"); assert.ok(html.indexOf("