import { render, screen } from '@testing-library/react'; import { describe, expect, it } from 'vitest'; import { Badge } from './Badge'; describe('Badge', () => { it('renders content and forwards native props', () => { render(Ready); expect(screen.getByLabelText('Status')).toHaveTextContent('Ready'); }); it('supports the success variant', () => { render(Complete); expect(screen.getByText('Complete')).toHaveClass('bg-success/8'); }); });