MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / renderWithRouter

Function renderWithRouter

javascript/grid-ui/src/tests/utils/render-utils.tsx:22–28  ·  view source on GitHub ↗
(ui, { route = '/' } = {})

Source from the content-addressed store, hash-verified

20import { MemoryRouter } from 'react-router-dom'
21
22const renderWithRouter = (ui, { route = '/' } = {}) => {
23 return render(
24 <MemoryRouter initialEntries={[route]}>
25 {ui}
26 </MemoryRouter>
27 )
28}
29
30export { renderWithRouter as render }

Callers

nothing calls this directly

Calls 1

renderFunction · 0.85

Tested by

no test coverage detected