Replace usage of react-test-renderer and @testing-library/react-hooks (#98152)

* Update dependency @types/react-test-renderer to v19

* replace usage of react-test-renderer

* use renderHook from @testing-library/react in most tests

* update tests to work without @testing-library/react-hooks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot]
2024-12-18 11:55:25 +00:00
committed by GitHub
co-authored by Ashley Harrison
parent b710e26a40
commit 89774f3c8d
31 changed files with 344 additions and 507 deletions
-1
View File
@@ -38,7 +38,6 @@
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "16.1.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "14.5.2",
"@types/jest": "^29.5.4",
"@types/lodash": "4.17.13",