diff --git a/tests/setupTests.js b/tests/setupTests.js index bb003dda92168056586272d77b6f64a8da34a100..c1d57d6b43b3a50711e7ad61356651e3477d0626 100644 --- a/tests/setupTests.js +++ b/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';