react-use/tests/setupTests.ts
xobotyi b6993a6f95
feat(prettier): make prettier a part of eslint.
Also reduce max line width to 100. And remove `lint:types` step for
commit sequence, it bothers when committing incomplete (wip) changes.
2021-02-01 18:58:55 +03:00

11 lines
200 B
TypeScript

import 'jest-localstorage-mock';
import { isBrowser } from '../src/misc/util';
if (isBrowser) {
(window as any).ResizeObserver = class ResizeObserver {
observe() {}
disconnect() {}
};
}