Is it possible to make when someFunction or any inner function that call ReactDom.render use my function instead real implementation?
export const testHelperFunction = (widget, anotherArg) => {
jest.mock('react-dom', () => {
return {
__esModule: true,
render: console.log,
}});
widget.someFunction(anotherArg);
jest.unmock('react-dom');
};