-
Notifications
You must be signed in to change notification settings - Fork 1
/
setupTests.js
31 lines (28 loc) · 1.23 KB
/
setupTests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import '@testing-library/jest-native/extend-expect'
import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/async-storage-mock'
import mockRNCNetInfo from '@react-native-community/netinfo/jest/netinfo-mock.js'
//react-hook-form
global.window = {}
global.window = global
jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage)
jest.mock('@react-native-community/netinfo', () => mockRNCNetInfo)
jest.mock('react-native-keyboard-aware-scroll-view', () => {
return {
KeyboardAwareScrollView: jest.fn().mockImplementation(({ children }) => children)
}
})
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper')
// jest.mock('./src/helpers/axiosHelper')
jest.mock('./src/helpers/geolocationHelper')
jest.mock('./src/helpers/sentry')
jest.mock('./src/services/atlasService')
jest.mock('./src/services/autocompleteService')
jest.mock('./src/services/documentService')
jest.mock('./src/services/formPermissionService')
jest.mock('./src/services/imageService')
jest.mock('./src/services/localityService')
jest.mock('./src/services/loggerService')
jest.mock('./src/services/newsService')
jest.mock('./src/services/userService')
jest.mock('./src/services/versionService')
jest.mock('./src/services/zoneService')