mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-24 01:48:18 +03:00
11 lines
411 B
TypeScript
11 lines
411 B
TypeScript
import '@testing-library/jest-dom';
|
|
import 'jest-canvas-mock';
|
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
import { setAutoFreeze } from 'immer';
|
|
|
|
(global as any).ResizeObserver = ResizeObserver;
|
|
(global as any).scrollTo = () => {};
|
|
(global as any).prompt = () => {};
|
|
(global as any).matchMedia = (media: string) => ({ matches: false, media });
|
|
|
|
setAutoFreeze(false); // TODO Bypassing a bug on jest
|