Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers" #62

Closed
aneilbaboo opened this issue Feb 14, 2018 · 1 comment
Labels

Comments

@aneilbaboo
Copy link
Contributor

When running app-client tests:

Solution may be here: jestjs/jest#4545 (comment)

 PASS  src/__tests__/src/containers/user/ResetPassword.test.tsx
  ● 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

 PASS  src/__tests__/src/containers/homepage/Homepage.test.tsx
  ● 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

 PASS  src/__tests__/src/containers/user/Signup.test.tsx
  ● 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

 PASS  src/__tests__/src/components/NavigationBar.test.tsx
  ● 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

 PASS  src/__tests__/src/containers/user/ForgotPassword.test.tsx
  ● 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

 PASS  src/__tests__/src/containers/user/Login.test.tsx
  ● 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

 PASS  src/__tests__/src/components/AuthRoute.test.tsx
  ● 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

 PASS  src/__tests__/src/containers/NotFound.test.tsx
  ● 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

 PASS  src/__tests__/src/components/Footer.test.tsx
  ● 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

 PASS  src/__tests__/src/components/SignupLoginContainer.test.tsx
  ● 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

 PASS  src/__tests__/src/containers/LoadingPage.test.tsx
  ● 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

 PASS  src/__tests__/src/utils/index.test.tsx
  ● 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
    console.warn src/utils/index.ts:30
      No Token sent to setTokenInLocalStorage
@shishiranshuman
Copy link

shishiranshuman commented Feb 16, 2018

@aneilbaboo Upgrading the versions of the jest and ts-jest fixed this issue. ✌️

screen shot 2018-02-16 at 10 46 00 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants