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

no-deprecated - React.addons.TestUtils doesn't create a warning #1644

Closed
nirnaor opened this issue Jan 14, 2018 · 3 comments · Fixed by #1645
Closed

no-deprecated - React.addons.TestUtils doesn't create a warning #1644

nirnaor opened this issue Jan 14, 2018 · 3 comments · Fixed by #1645

Comments

@nirnaor
Copy link
Contributor

nirnaor commented Jan 14, 2018

When using React.addons.TestUtils a warning should be thrown, since the addons entry point is deprecated as of 15.5.0 (as per the official documentation)

The error that should be thrown is:
React.addons.TestUtils is deprecated since React 15.5.0, use ReactDOM.TestUtils instead.

@ljharb
Copy link
Member

ljharb commented Jan 14, 2018

Thanks! We'll want to make sure that only throws when the version pragma is 15.5.0 or greater.

@nirnaor
Copy link
Contributor Author

nirnaor commented Jan 15, 2018

@ljharb Great. Anything I can do to help with this verification?

@ljharb
Copy link
Member

ljharb commented Jan 15, 2018

Nope, your PR seems solid :-)

This was referenced Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants