import React from 'react' import { render } from '@testing-library/react-native' import LoadingState from './LoadingState' describe('LoadingState Component', () => { describe('Basic Rendering', () => { it('should render ActivityIndicator', () => { const { UNSAFE_root } = render() expect(UNSAFE_root).toBeTruthy() }) it('should render with optional message', () => { const { getByText } = render() expect(getByText('Loading...')).toBeTruthy() }) it('should render without message when not provided', () => { const { queryByText } = render() expect(queryByText(/./)).toBeNull() }) }) describe('Theme Support', () => { it('should use light color by default', () => { const { UNSAFE_root } = render() expect(UNSAFE_root).toBeTruthy() }) it('should accept custom color', () => { const { UNSAFE_root } = render() expect(UNSAFE_root).toBeTruthy() }) }) describe('Props', () => { it('should accept testID prop', () => { const { getByTestId } = render() expect(getByTestId('loading-test')).toBeTruthy() }) }) })