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

remove outstanding testing-library/react-hooks usages #205307

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

eokoneyo
Copy link
Contributor

@eokoneyo eokoneyo commented Dec 31, 2024

Summary

This PR removes usages of @testing-library/react-hooks from the codebase, as we've transitioned to using @testing-library/react especially that it provides the same utils we need and the later package is not supported for react 18. alongside this other instance of the usages for @testing-library/react-hooks have been removed an eslint rule has been enabled to prevent further usages of the mentioned package.

@eokoneyo eokoneyo requested review from a team as code owners December 31, 2024 10:10
@botelastic botelastic bot added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team labels Dec 31, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@eokoneyo eokoneyo added Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) and removed Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team labels Dec 31, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@eokoneyo eokoneyo added the release_note:skip Skip the PR/issue when compiling release notes label Dec 31, 2024
Copy link
Member

@KDKHD KDKHD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Generative AI files look good.

@botelastic botelastic bot added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team labels Dec 31, 2024
@eokoneyo eokoneyo added backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) and removed Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team labels Dec 31, 2024
@botelastic botelastic bot added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team labels Dec 31, 2024
Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@eokoneyo eokoneyo force-pushed the chore/remove-testing-library-react-hooks branch from 8b850f5 to 1d59a95 Compare December 31, 2024 10:35
@eokoneyo eokoneyo force-pushed the chore/remove-testing-library-react-hooks branch from 1d59a95 to de2bfa5 Compare December 31, 2024 11:03
@eokoneyo eokoneyo force-pushed the chore/remove-testing-library-react-hooks branch from de2bfa5 to 84af98d Compare December 31, 2024 14:40
@eokoneyo eokoneyo requested a review from a team as a code owner December 31, 2024 14:40
@eokoneyo eokoneyo changed the title remove testing-library/react-hooks remove outstanding testing-library/react-hooks usages Dec 31, 2024
Copy link
Contributor

@awahab07 awahab07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obs-ux-logs changes LGTM!

@eokoneyo eokoneyo force-pushed the chore/remove-testing-library-react-hooks branch from 84af98d to be7b975 Compare January 2, 2025 09:18
@eokoneyo eokoneyo force-pushed the chore/remove-testing-library-react-hooks branch from be7b975 to 6f102b9 Compare January 2, 2025 09:21
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.eslintrc.js LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) React@18 release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)
Projects
None yet
Development

Successfully merging this pull request may close these issues.