import React from 'react';
import { describe, expect, it, vi } from 'vitest';
import { render, screen } from '@testing-library/react';

vi.mock('@tamagui/stacks', () => ({
  YStack: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
}));

vi.mock('@tamagui/text', () => ({
  SizableText: ({ children }: { children: React.ReactNode }) => <span>{children}</span>,
}));

vi.mock('@/guest/i18n/useTranslation', () => ({
  useTranslation: () => ({
    t: (_key: string, fallback?: string) => fallback ?? _key,
  }),
}));

import NotFoundScreen from '../screens/NotFoundScreen';

describe('NotFoundScreen', () => {
  it('renders fallback copy', () => {
    render(<NotFoundScreen />);

    expect(screen.getByText('Seite nicht gefunden')).toBeInTheDocument();
    expect(screen.getByText('Die Seite konnte nicht gefunden werden.')).toBeInTheDocument();
  });
});
