import {
  mockMatchMedia as baseMockMatchMedia,
  mockResizeObserver as baseMockResizeObserver,
  mockRequestAnimationFrame as baseMockRequestAnimationFrame,
} from '../mocks';

export function mockMatchMedia() {
  baseMockMatchMedia(jest);
}

export function mockResizeObserver() {
  // mock ResizeObserver because it's not implemented in jsdoc lib
  // https://github.com/jsdom/jsdom/issues/3368
  baseMockResizeObserver(jest);
}

export function mockRequestAnimationFrame() {
  baseMockRequestAnimationFrame();
}
