/**
 * @jest-environment jsdom
 *
 * Regression guard for the GA4 hydration fix. ApexAnalytics is a static
 * (force-static) client component; the server snapshot is `false`, so on a
 * non-production host it must render nothing — both to avoid loading GA on
 * dev/staging and to keep the server and first client render identical (no
 * hydration mismatch). The default jsdom host (localhost) is non-production.
 * The production-host path is covered in ApexAnalytics.prod.test.tsx (which
 * sets a production URL via @jest-environment-options).
 */
import { render } from '@testing-library/react';
import { ApexAnalytics } from '../ApexAnalytics';

describe('ApexAnalytics on a non-production host', () => {
  it('renders nothing (no GA scripts, no hydration risk)', () => {
    const { container } = render(<ApexAnalytics />);
    expect(container).toBeEmptyDOMElement();
  });
});
