From f77720c10bbda47e02a31d22d471cabfa0c6a22d Mon Sep 17 00:00:00 2001 From: bot-implementer Date: Tue, 25 Aug 2026 10:44:19 +0000 Subject: [PATCH] chore: add scaffold smoke test --- tests/scaffold.test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/scaffold.test.js diff --git a/tests/scaffold.test.js b/tests/scaffold.test.js new file mode 100644 index 0000000..52e82fc --- /dev/null +++ b/tests/scaffold.test.js @@ -0,0 +1,14 @@ +import test from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; +import { fileURLToPath } from "node:url"; +import { dirname, join } from "node:path"; + +const root = join(dirname(fileURLToPath(import.meta.url)), ".."); + +test("the site has a home page with a semantic navigation bar", () => { + const html = readFileSync(join(root, "index.html"), "utf8"); + assert.match(html, /