diff --git a/test/setupApp.js b/test/setupApp.js index 8909dd6cbc47..6589ec69a007 100644 --- a/test/setupApp.js +++ b/test/setupApp.js @@ -15,3 +15,7 @@ global.HTMLElement = global.window.HTMLElement if (global.chrome === undefined) { global.chrome = getMockChrome() } +// mocks rAF to suppress React warning while testing +global.requestAnimationFrame = function (cb) { + return setTimeout(cb, 0) +}