-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(sentry-test/enzyme): Add migration warning message #29427
Conversation
|
||
import {lightTheme} from 'app/utils/theme'; | ||
|
||
/** | ||
* @deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was not sure if I should already add @deprecated
here, since there will be an eslint rule too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having both is fine. The doc string annotation doesn't cost anything and could help folks who have TSC setup but not eslint in their editor.
|
||
import {lightTheme} from 'app/utils/theme'; | ||
|
||
/** | ||
* @deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having both is fine. The doc string annotation doesn't cost anything and could help folks who have TSC setup but not eslint in their editor.
973e116
to
ad10cd0
Compare
As we are migrating our enzyme tests to the React Testing Library, we would like to warn devs that the use of enzyme
shallow
andmountWithTheme
is not recommended