Last active
October 14, 2019 15:06
-
-
Save gaearon/9a4d54653ae9c50af6c54b4e0e56b583 to your computer and use it in GitHub Desktop.
Thanks! Now I understand that --setupTestFrameworkScriptFile
is the CLI flag as well. So thankful for --showConfig
to see the underlying config being applied ๐
this fixed the issue for me in Jest jestjs/jest#4545 (comment)
Cheers, @capaj!
>$ yarn add raf --dev
// package.json
...
"jest": {
"setupFiles": [
"raf/polyfill"
]
},
...
@capaj, Great... ๐
// package.json
...
"setupFiles": [
"raf/polyfill"
]
...
Thanks!.. am using jest
package and now its fixed my console 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
@capaj, thanks!)
@capaj, Thanks!!!
@capaj, Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rockchalkwushock Have you tried putting the config in
src/setupTests.js
?doc: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#initializing-test-environment