I'm trying to test this simple componentDidUpdate and I can not seem to get it covered for the life of me.
this how I'm testing it.
it('should run storeCardDesigns if conditions are met on componentDidUpdate', () => {
const props = {
isLoading: () => false,
loadedWithErrors: () => false,
storeCardDesigns: jest.fn(),
availableCardDesigns: [],
};
const renderedModule = shallow(<GalleryModal {...props} />);
renderedModule.setProps({ availableCardDesigns: [{ id: 'test1' }, { id: 'test2' }] });
expect(renderedModule).toMatchSnapshot();
});
