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.

787 B
Raw Blame
import { SDKKey } from '~/types'

import { getAvailableSDKs } from '../getAvailableSDKs'
import { SessionReplaySDKDocsLinkOverrides, SessionReplaySDKInstructions } from './SessionReplaySDKInstructions'

describe('SessionReplaySDKInstructions', () => {
    it('makes Unity selectable with session replay instructions and docs', () => {
        const availableSDKs = getAvailableSDKs(SessionReplaySDKInstructions, {}, SessionReplaySDKDocsLinkOverrides)
        const unitySDK = availableSDKs.find(({ key }) => key === SDKKey.UNITY)

        expect(SessionReplaySDKInstructions[SDKKey.UNITY]).not.toBeUndefined()
        expect(unitySDK).toMatchObject({
            key: SDKKey.UNITY,
            docsLink: 'https://posthog.com/docs/session-replay/installation/unity',
        })
    })
})