2022-04-30 10:05:12 +03:00
|
|
|
import '@testing-library/jest-dom';
|
2022-04-30 13:01:50 +03:00
|
|
|
import 'jest-canvas-mock';
|
|
|
|
import ResizeObserver from 'resize-observer-polyfill';
|
2022-11-12 19:51:37 +03:00
|
|
|
import { setAutoFreeze } from 'immer';
|
2022-04-30 13:01:50 +03:00
|
|
|
|
|
|
|
(global as any).ResizeObserver = ResizeObserver;
|
2022-05-06 21:13:51 +03:00
|
|
|
(global as any).scrollTo = () => {};
|
2022-06-10 21:29:42 +03:00
|
|
|
(global as any).prompt = () => {};
|
2022-05-09 19:38:14 +03:00
|
|
|
(global as any).matchMedia = (media: string) => ({ matches: false, media });
|
2022-11-12 19:51:37 +03:00
|
|
|
|
|
|
|
setAutoFreeze(false); // TODO Bypassing a bug on jest
|