Mocking an imported function to return different values for different tests
In the top level:
import getVisibleDays from 'react-dates/lib/utils/getVisibleDays';
jest.mock('react-dates/lib/utils/getVisibleDays', () => {
const moment = require('moment');
return jest.fn().mockReturnValue({
'2018-01': [