'use client' import type { TestResult } from './types' interface TestResultCardProps { result: TestResult } export function TestResultCard({ result }: TestResultCardProps) { const statusColors = { passed: 'bg-green-100 border-green-300 text-green-800', failed: 'bg-red-100 border-red-300 text-red-800', pending: 'bg-yellow-100 border-yellow-300 text-yellow-800', skipped: 'bg-gray-100 border-gray-300 text-gray-600', } const statusIcons = { passed: '✓', failed: '✗', pending: '○', skipped: '−', } return (

{statusIcons[result.status]} {result.name}

{result.description}

{result.duration_ms.toFixed(0)}ms
Erwartet: {result.expected}
Erhalten: {result.actual}
{result.error_message && (
Fehler: {result.error_message}
)}
) }