chore: add scaffold smoke test
CI / Run tests (push) Has been cancelled

This commit is contained in:
2026-08-25 10:44:19 +00:00
parent 6aabecbe76
commit f77720c10b
+14
View File
@@ -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, /<nav/);
assert.match(html, /class="nav-links"/);
assert.match(html, /<a href="index\.html">Home<\/a>/);
});