Skip to content

Commit

Permalink
1010: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenkleinle committed Nov 13, 2024
1 parent cca318d commit f19d5ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jest.mock('react-native-reanimated', () => {
return Reanimated
})

// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper')
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter')

jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage)
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/App.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { View } from 'react-native'
import App from '../App'

jest.mock('react-navigation-header-buttons', () => ({
OverflowMenuProvider: ({ children }: { children: ReactNode }) => <View>{children}</View>,
HeaderButtonsProvider: ({ children }: { children: ReactNode }) => <View>{children}</View>,
}))
jest.mock('../navigation/Navigator', () => {
const Text = require('react-native').Text
Expand Down

0 comments on commit f19d5ab

Please sign in to comment.