OperationCode / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.
https://operationcode.org
MIT License
101 stars 222 forks source link

Polyfill rAF in test environment to prevent CI build warnings for tests #962

Closed jjhampton closed 6 years ago

jjhampton commented 6 years ago

What is the current behavior?

Travis CI build currently displays the following warning:

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

What is the expected behavior?

No warnings. We can follow the pattern used in create-react-app to fix this: https://github.com/facebook/create-react-app/pull/3340/files

nagano564 commented 6 years ago

is this claimed?

jjhampton commented 6 years ago

@nagano564 Nope, do you want to work on it?