import { getLiveFeaturedProjects } from "./portfolio-data"; import type { ProjectHealthSnapshot } from "./project-health"; describe("getLiveFeaturedProjects", () => { it("returns only featured projects validated in the current snapshot", () => { const snapshot: ProjectHealthSnapshot = { checkedAt: "2026-07-10T12:00:00.000Z", projects: { "sev-modaintima": { status: 200, contentType: "text/html; charset=utf-8", checkedAt: "2026-07-10T12:00:00.000Z", }, }, }; expect( getLiveFeaturedProjects( snapshot, new Date("2026-07-10T12:01:00.000Z"), ).map((project) => project.id), ).toEqual(["sev-modaintima"]); }); });