shlink-web-client/config/jest/setupTests.ts

8 lines
282 B
TypeScript
Raw Normal View History

import '@testing-library/jest-dom';
2022-04-30 13:01:50 +03:00
import 'jest-canvas-mock';
import ResizeObserver from 'resize-observer-polyfill';
(global as any).ResizeObserver = ResizeObserver;
(global as any).scrollTo = () => {};
(global as any).matchMedia = (media: string) => ({ matches: false, media });