mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
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(),
|
|
};
|
|
|
|
// Reset the mocks before each test
|
|
global.beforeEach(() => {
|
|
jest.resetAllMocks();
|
|
});
|