Skip to content

Commit

Permalink
[React@18] Refactor overview.tsx test to rtl (elastic#206805)
Browse files Browse the repository at this point in the history
## Summary

Extracted from elastic#206411
[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/267344#019469ff-7fb9-4c5d-8569-2e445aab27be)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/267344/jobs/019469ff-7fb9-4c5d-8569-2e445aab27be/artifacts/01946a1c-62fa-4d30-8863-1b40f8c0b924)
Jest Tests elastic#9 / Overview renders correctly when there is no user data
view
This simplifies overview.tsx by refactoring to rtl and removing the
whole snapshot. The snapshot was not useful and the test is still making
sure that the intended component is still rendered. By removing enzyme,
the test now works properly for both react 17 and 18.

(cherry picked from commit bdcad52)
  • Loading branch information
Dosant committed Jan 16, 2025
1 parent d824cd2 commit 197861d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1,658 deletions.
Loading

0 comments on commit 197861d

Please sign in to comment.