import {useEffect} from 'react'; import {render} from 'sentry-test/reactTestingLibrary'; import {RouteAnalyticsContext} from 'sentry/views/routeAnalyticsContextProvider'; import withRouteAnalytics from './withRouteAnalytics'; function TestComponent({setRouteAnalyticsParams}) { useEffect(() => { setRouteAnalyticsParams({foo: 'bar'}); }, [setRouteAnalyticsParams]); return