Files
supabase/apps/studio/components/interfaces/Database/Replication/DestinationIcon.test.tsx
T
Danny White fbe21d33db feat(studio): remove read replicas from Replication
Make Database → Replication pipelines-only. Replica create/list/diagram nodes move out; legacy destinationType links redirect to Infrastructure.
2026-08-21 11:31:33 +10:00

22 lines
652 B
TypeScript

import { render } from '@testing-library/react'
import { describe, expect, test } from 'vitest'
import { DestinationIcon } from './DestinationIcon'
import type { DestinationType } from './DestinationPanel/DestinationPanel.types'
const DESTINATION_TYPES: DestinationType[] = [
'BigQuery',
'Analytics Bucket',
'DuckLake',
'Snowflake',
'ClickHouse',
]
describe('DestinationIcon', () => {
test.each(DESTINATION_TYPES)('renders %s at the canonical stroke width', (type) => {
const { container } = render(<DestinationIcon type={type} size={20} />)
expect(container.querySelector('svg')).toHaveAttribute('stroke-width', '1.5')
})
})