Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

439 B
Raw Blame
import { PipelineEvent } from '../../src/types'

export function createTestPipelineEvent(overrides: Partial<PipelineEvent> = {}): PipelineEvent {
    return {
        distinct_id: 'test-distinct-id',
        ip: '127.0.0.1',
        site_url: 'https://example.com',
        now: '2021-01-01T00:00:00Z',
        event: '$pageview',
        uuid: '123e4567-e89b-12d3-a456-426614174000',
        properties: {},
        ...overrides,
    }
}