import { describe, it, expect } from 'vitest' import { render, screen } from '@/lib/test-utils' import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './card' describe('Card Components', () => { it('should render Card with children', () => { render(

Card content

) expect(screen.getByText('Card content')).toBeInTheDocument() }) it('should render CardHeader with title and description', () => { render( Card Title Card Description ) expect(screen.getByText('Card Title')).toBeInTheDocument() expect(screen.getByText('Card Description')).toBeInTheDocument() }) it('should render CardContent', () => { render(

Content here

) expect(screen.getByText('Content here')).toBeInTheDocument() }) it('should render CardFooter', () => { render( ) expect(screen.getByRole('button', { name: /action/i })).toBeInTheDocument() }) })