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.

443 B
Raw Blame
import { PluginEvent } from '~/plugin-scaffold'

export function createTestPluginEvent(overrides: Partial<PluginEvent> = {}): PluginEvent {
    return {
        distinct_id: 'test-distinct-id',
        ip: null,
        site_url: 'http://localhost',
        team_id: 1,
        now: '2020-02-23T02:15:00Z',
        event: '$pageview',
        uuid: '123e4567-e89b-12d3-a456-426614174000',
        properties: {},
        ...overrides,
    }
}