import { metadata } from "./page"; jest.mock("./components/cinematic/CinematicHome", () => ({ __esModule: true, default: () => null, })); describe("home metadata", () => { it("leaves the title to the layout default: the template does not apply to the page of its own segment", () => { expect(metadata.title).toBeUndefined(); }); it("owns the canonical '/', so the 404 page does not inherit it from the layout", () => { expect(metadata.alternates).toEqual({ canonical: "/" }); }); });