feat: update RefreshControl mocks in tests and improve error handling in useChangePassword hook
This commit is contained in:
@@ -28,7 +28,13 @@ jest.mock('@/components/icon', () => ({
|
||||
// Mock components
|
||||
jest.mock('@/components/ErrorState', () => 'ErrorState')
|
||||
jest.mock('@/components/LoadingState', () => 'LoadingState')
|
||||
jest.mock('@/components/RefreshControl', () => 'RefreshControl')
|
||||
|
||||
// Mock react-native RefreshControl (directly from react-native)
|
||||
jest.mock('react-native', () =>
|
||||
Object.assign({}, jest.requireActual('react-native'), {
|
||||
RefreshControl: 'RefreshControl',
|
||||
})
|
||||
)
|
||||
|
||||
// Mock dependencies
|
||||
jest.mock('expo-router', () => ({
|
||||
|
||||
Reference in New Issue
Block a user