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

ref(sentry-test/enzyme): Add migration warning message #29427

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev commented Oct 20, 2021

As we are migrating our enzyme tests to the React Testing Library, we would like to warn devs that the use of enzyme shallow and mountWithTheme is not recommended


import {lightTheme} from 'app/utils/theme';

/**
* @deprecated
Copy link
Member Author

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

Copy link
Member

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.

@priscilawebdev priscilawebdev requested a review from a team October 20, 2021 08:38

import {lightTheme} from 'app/utils/theme';

/**
* @deprecated
Copy link
Member

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.

@priscilawebdev priscilawebdev force-pushed the ref/add-sentry-test-warning-message branch from 973e116 to ad10cd0 Compare October 21, 2021 07:21
@priscilawebdev priscilawebdev merged commit 58bc5b0 into master Oct 21, 2021
@priscilawebdev priscilawebdev deleted the ref/add-sentry-test-warning-message branch October 21, 2021 08:00
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants