I\'m trying to mock the return value (or implementation) of the functions inside another module\'s function with Jest. I need to test different scenarios (function throws er