{"size": 506, "ext": "js", "max_stars_repo_path": "jest.setup.js", "max_stars_repo_name": "sumitparakh/front-end", "max_stars_repo_stars_event_min_datetime": "2021-05-21T23:26:45.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-21T23:26:45.000Z", "max_issues_repo_path": "jest.setup.js", "max_issues_repo_name": "timneutkens/front-end", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "jest.setup.js", "max_forks_repo_name": "timneutkens/front-end", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.0, "max_line_length": 73, "alphanum_fraction": 0.6403162055}
import '@testing-library/jest-dom/extend-expect';

/* MOCKS */
// Storybook Info Addon
jest.mock('@storybook/addon-info', () => ({
  withInfo: () => storyFn => storyFn,
  setDefaults: () => {},
}));

// React Modal
jest.mock('react-modal');

beforeAll(() => {
  const observe = jest.fn();
  const unobserve = jest.fn();

  // eslint-disable-next-line func-names
  global.IntersectionObserver = jest.fn().mockImplementation(function() {
    this.observe = observe;
    this.unobserve = unobserve;
  });
});
