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