/** * @jest-environment-options {"url": "https://www.evandro.dev.br/"} */ import { act, render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import type { ComponentProps } from "react"; import { openCookiePreferences } from "@/lib/analytics"; import GoogleAnalytics from "./GoogleAnalytics"; /** * Caminho de GoogleAnalytics (expireAnalyticsCookies) quando o site roda em um subdomínio de evandro.dev.br: * o cookie _ga é expirado no host e também no domínio raiz, cada um com seu atributo Domain. */ jest.mock("next/script", () => ({ __esModule: true, default: ({ strategy: _strategy, ...props }: ComponentProps<"script"> & { strategy?: string }) =>