afc163 8 rokov pred
rodič
commit
7532598937
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      tests/setupTests.js

+ 4 - 1
tests/setupTests.js

@@ -1,5 +1,8 @@
 /* eslint-disable import/first */
-import '../src/polyfill';
+global.requestAnimationFrame =
+  global.requestAnimationFrame || function requestAnimationFrame(callback) {
+    setTimeout(callback, 0);
+  };
 import { jsdom } from 'jsdom';
 import Enzyme from 'enzyme';
 import Adapter from 'enzyme-adapter-react-16';