Files
Maagap/ioneapps-maagapp-ee31119a522d/__mocks__/react-native-creedon-imagepicker.js
2025-08-06 13:49:11 +08:00

17 lines
558 B
JavaScript

/* global jest: false */
import { NativeModules } from 'react-native';
NativeModules.RNCreedonImagepicker = {
assets: jest.fn(),
launchImageLibrary: jest.fn(),
cleanupTempFiles: jest.fn(),
addListener: jest.fn(),
};
const mockRNCreedonImagepicker = jest.genMockFromModule('react-native-creedon-imagepicker');
mockRNCreedonImagepicker.assets = () => Promise.resolve();
mockRNCreedonImagepicker.launchImageLibrary = () => Promise.resolve();
mockRNCreedonImagepicker.cleanupTempFiles = () => Promise.resolve();
module.exports = mockRNCreedonImagepicker;