Description
Do you want to request a feature or report a bug?
Bug-ish
What is the current behavior?
Warning emitted:
● Console
console.error node_modules/fbjs/lib/warning.js:33
Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. http://fb.me/react-polyfills
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install
and yarn test
.
Run any Jest tests with React 16
What is the expected behavior?
No warning
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest v21.2.0
jest-environment-jsdom-11.0.0 v20.0.9
This would be resolved by jsdom/jsdom#1963 upstream. It's just sort of an annoying warning, and I don't want to define a custom environment just to stub polyfill rAF.
I think this is trackable here given that the React docs recommend Jest: https://facebook.github.io/react/docs/test-utils.html, and that it'd be ideal for Jest tests to not emit warnings when used with the latest React release.