feat: update RefreshControl mocks in tests and improve error handling in useChangePassword hook
This commit is contained in:
@@ -44,9 +44,15 @@ jest.mock('@/components/icon', () => ({
|
||||
// Mock UI components
|
||||
jest.mock('@/components/LoadingState', () => 'LoadingState')
|
||||
jest.mock('@/components/ErrorState', () => 'ErrorState')
|
||||
jest.mock('@/components/RefreshControl', () => 'RefreshControl')
|
||||
jest.mock('@/components/PaginationLoader', () => 'PaginationLoader')
|
||||
|
||||
// Mock react-native RefreshControl (directly from react-native)
|
||||
jest.mock('react-native', () =>
|
||||
Object.assign({}, jest.requireActual('react-native'), {
|
||||
RefreshControl: 'RefreshControl',
|
||||
})
|
||||
)
|
||||
|
||||
// Mock hooks
|
||||
jest.mock('@/hooks', () => ({
|
||||
useTemplates: jest.fn(() => ({
|
||||
|
||||
Reference in New Issue
Block a user