Skip to content

Commit

Permalink
test: Mock telemetry in test server
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi committed Sep 12, 2024
1 parent 6d558c0 commit 47456cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/test/integration/shared/utils/test-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { rawBodyReader, bodyParser } from '@/middlewares';
import { PostHogClient } from '@/posthog';
import { Push } from '@/push';
import type { APIRequest } from '@/requests';
import { Telemetry } from '@/telemetry';

import { mockInstance } from '../../../shared/mocking';
import { PUBLIC_API_REST_PATH_SEGMENT, REST_PATH_SEGMENT } from '../constants';
Expand Down Expand Up @@ -90,6 +91,7 @@ export const setupTestServer = ({
mockInstance(Logger);
mockInstance(PostHogClient);
mockInstance(Push);
mockInstance(Telemetry);

const testServer: TestServer = {
app,
Expand Down

0 comments on commit 47456cd

Please sign in to comment.