import assert from "node:assert/strict"; import { after, before, describe, it } from "node:test"; import { loadMessages } from "../src/i18n.ts"; import { escapeHtml, renderHomePage } from "../src/render.ts"; import { type Running, startApp } from "./helpers.ts"; let app: Running; before(async () => { app = await startApp(); }); after(async () => { await app.close(); }); const text = (html: string) => html .replace(/