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,4 +1,4 @@
import { renderHook } from '@testing-library/react-hooks';
import { renderHook } from '@testing-library/react';
import { DataSourceSettings } from '@grafana/data';