import { fireEvent, render, screen, within } from "@testing-library/react"; import { OPEN_COOKIE_PREFERENCES_EVENT } from "@/lib/analytics"; import { serviceHubLinks } from "@/lib/site-content"; import Footer from "./Footer"; // o Link do Next, trocado por um que mostra o `prefetch` recebido: HoverPrefetchLink começa em false jest.mock("next/link", () => ({ __esModule: true, default: ({ children, prefetch, ...props }: { children?: React.ReactNode; prefetch?: boolean | null } & Record< string, unknown >) => ( {children} ), })); describe("Footer contact and navigation", () => { it("offers a direct mailto link without repeating the contact call to action", () => { render(