Fix unit tests (#377)
* Fix unit tests * Remove excess lint and prettier checks from gh actions
This commit is contained in:
parent
70abcc48b8
commit
9d178c7e15
4 changed files with 6 additions and 15 deletions
|
@ -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']]),
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue