MCPcopy
hub / github.com/getsentry/sentry / Wrapper

Function Wrapper

tests/js/sentry-test/reactTestingLibrary.tsx:383–392  ·  view source on GitHub ↗
({children}: {children?: React.ReactNode})

Source from the content-addressed store, hash-verified

381 let memoryRouter: Router | null = null;
382
383 function Wrapper({children}: {children?: React.ReactNode}) {
384 memoryRouter = makeRouter({
385 children: <AllTheProviders>{children}</AllTheProviders>,
386 history,
387 config,
388 outletContext,
389 });
390
391 return <RouterProvider router={memoryRouter} future={{v7_startTransition: true}} />;
392 }
393
394 const {initialProps, ...rest} = options;
395

Callers

nothing calls this directly

Calls 1

makeRouterFunction · 0.85

Tested by

no test coverage detected