Вы можете следить за методом reload
и моделировать щелчок по div
, что-то вроде:
it("should reload the page", () => {
jest.spyOn(window.location, 'reload');
const component = mount(ErrorSnackbar());
component.find('.sample_class').simulate('click');
expect(window.location.reload).toHaveBeenCalled();
});