import React from 'react'; import { describe, expect, it, vi } from 'vitest'; import { fireEvent, render, screen } from '@testing-library/react'; vi.mock('@tamagui/core', () => ({ useTheme: () => ({ color: { val: '#111827' }, gray: { val: '#6b7280' }, borderColor: { val: '#e5e7eb' }, primary: { val: '#FF5A5F' }, surface: { val: '#ffffff' }, red10: { val: '#b91c1c' }, }), })); vi.mock('@tamagui/stacks', () => ({ YStack: ({ children, ...props }: { children: React.ReactNode }) =>
{children}
, XStack: ({ children, ...props }: { children: React.ReactNode }) =>
{children}
, })); vi.mock('@tamagui/text', () => ({ SizableText: ({ children, ...props }: { children: React.ReactNode }) => {children}, })); vi.mock('tamagui', () => ({ Input: ({ ...props }: React.InputHTMLAttributes) => , TextArea: ({ ...props }: React.TextareaHTMLAttributes) =>