mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-18 13:32:27 -04:00
* Get a few mocks working in __mocks__ folder * Move more mocks into __mocks__ * Move mocks * Move zustand mock * Add more mocks to __mocks__ * More mocks * Move more files to __mocks__ and audit existing mocks * Mock react navigation in __mocks__ * Restore test to help with imports after jest env torn down * Add fake timer to integration test with userEvent * Add RN paper mock
9 lines
266 B
JavaScript
9 lines
266 B
JavaScript
import { NativeModules } from "react-native";
|
|
|
|
// Mock the ImagePickerManager native module to allow us to unit test the JavaScript code
|
|
NativeModules.ImagePickerManager = {
|
|
showImagePicker: jest.fn(),
|
|
launchCamera: jest.fn(),
|
|
launchImageLibrary: jest.fn()
|
|
};
|