Fix unit tests (#377)

* Fix unit tests

* Remove excess lint and prettier checks from gh actions
This commit is contained in:
Paul Frazee 2023-04-03 12:11:06 -05:00 committed by GitHub
parent 70abcc48b8
commit 9d178c7e15
4 changed files with 6 additions and 15 deletions

View file

@ -43,12 +43,6 @@ jest.mock('@bam.tech/react-native-image-resizer', () => ({
createResizedImage: jest.fn(),
}))
import {View as mockedView} from 'react-native'
jest.mock('react-native-tab-view', () => ({
...jest.requireActual('react-native-tab-view'),
TabView: mockedView,
}))
jest.mock('@segment/analytics-react-native', () => ({
createClient: () => ({
add: jest.fn(),
@ -75,3 +69,8 @@ jest.mock('expo-media-library', () => ({
default: jest.fn(),
usePermissions: jest.fn(() => [true]),
}))
jest.mock('lande', () => ({
__esModule: true, // this property makes it work
default: jest.fn().mockReturnValue([['eng']]),
}))