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 18, 2024
1 parent cca318d commit d109f0e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"packageManager": "[email protected]",
"scripts": {
"android": "react-native run-android --no-packager --active-arch-only",
"android:production": "react-native run-android --no-packager --variant=release",
"android:production": "react-native run-android --no-packager --mode=release",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest --verbose --maxWorkers=1",
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
2 changes: 1 addition & 1 deletion src/routes/home/components/ProfessionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ProfessionDetails = ({
<>
<ProgressContainer>
<Progress.Circle
progress={completedDisciplines ? progress ?? 0 : 0}
progress={completedDisciplines ? (progress ?? 0) : 0}
size={50}
indeterminate={false}
color={theme.colors.progressIndicator}
Expand Down

0 comments on commit d109f0e

Please sign in to comment.