MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createTestDeps

Function createTestDeps

cli/src/utils/__tests__/analytics-client.test.ts:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

createMockClientFunction · 0.85

Tested by

no test coverage detected