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.

754 B
Raw Blame
import * as packageIcons from '@posthog/icons'

import { ELEMENTS, OBJECTS, TEAMS_AND_COMPANIES, TECHNOLOGY } from './categories'
import { IconCollection } from './icons3000.stories'

describe('icons', () => {
    it('ensures all icons are categorised', async () => {
        const validPackageIcons = (Object.keys(packageIcons) as IconCollection).filter(
            (i) => !['BaseIcon', 'default'].includes(i)
        )
        const categories = { ...OBJECTS, ...TECHNOLOGY, ...ELEMENTS, ...TEAMS_AND_COMPANIES }
        const categorisedIcons = Object.values(categories)
            .map((category) => Object.values(category))
            .flat(2)

        expect(validPackageIcons.filter((i) => !categorisedIcons.includes(i))).toEqual([])
    })
})