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