MCPcopy Index your code
hub / github.com/coder/coder / render

Function render

site/src/testHelpers/renderHelpers.tsx:56–68  ·  view source on GitHub ↗
(element: ReactNode)

Source from the content-addressed store, hash-verified

54};
55
56export const render = (element: ReactNode) => {
57 return renderWithRouter(
58 createMemoryRouter(
59 [
60 {
61 path: "/",
62 element,
63 },
64 ],
65 { initialEntries: ["/"] },
66 ),
67 );
68};
69
70export type RenderWithAuthOptions = {
71 // The current URL, /workspaces/123

Calls 1

renderWithRouterFunction · 0.85

Tested by 5

renderScheduleControlsFunction · 0.72
renderLinkTabsFunction · 0.40
renderEditorPageFunction · 0.40
renderWithQueryClientFunction · 0.40