import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import test from "node:test"; const starterHome = readFileSync(new URL("../src/components/starter-home.tsx", import.meta.url), "utf8"); const css = readFileSync(new URL("../src/app/globals.css", import.meta.url), "utf8"); const design = readFileSync(new URL("../DESIGN.md", import.meta.url), "utf8"); function starterEntryBlock(): string { const start = css.indexOf(".starter-entry {"); const end = css.indexOf(".starter-entry > svg"); assert.ok(start >= 0 && end > start); return css.slice(start, end); } test("starter entries stay a 36px pill with a 44px hit area", () => { // 原值:`