()
| 37 | |
| 38 | // Create test dependencies with production-like config |
| 39 | function createTestDeps(): AnalyticsDeps { |
| 40 | return { |
| 41 | env: { |
| 42 | NEXT_PUBLIC_POSTHOG_API_KEY: 'test-api-key', |
| 43 | NEXT_PUBLIC_POSTHOG_HOST_URL: 'https://test.posthog.com', |
| 44 | }, |
| 45 | isProd: true, |
| 46 | createClient: () => createMockClient(), |
| 47 | generateAnonymousId: () => TEST_ANONYMOUS_ID, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | beforeEach(() => { |
| 52 | // Reset mocks |
no test coverage detected