-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Deprication Warnings from spec files? with react 15.5 #3270
Comments
This is probably coming from Enzyme (related PR enzymejs/enzyme#876) or other library. |
That was my first thought but this test isn't using enzyme? |
This test also doesn't feature any React code, and yet it logs the error? Something somewhere has to reference it, and it's certainly not a fault of Jest. |
Touche... Thanks for the input :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug? Bug
What is the current behavior?
receive
console.error node_modules/fbjs/lib/warning.js:36 Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
from running tests dispite them being updatedIf 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
andyarn test
.https://gist.github.com/th3fallen/13b4f263bbeb226058a507f2658c3c66
i can reproduce in your repl link becaue it's running jest 18 and a lower version of react
When running jest tests after updating to react 15.5.0 and migrating to the new external proptypes package all specs give the deprication warning
What is the expected behavior?
warnings should not be triggered if components are using new external proptypes package
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest v19.0.2
package.json
Versions
Running on OSX 10.12.5 beta 16F43c
The text was updated successfully, but these errors were encountered: