MCPcopy Create free account
hub / github.com/dailydotdev/apps / renderLayout

Function renderLayout

packages/webapp/__tests__/MainLayoutServerVariant.tsx:50–60  ·  view source on GitHub ↗
(layoutVariant?: LayoutVariant)

Source from the content-addressed store, hash-verified

48 });
49
50 const renderLayout = (layoutVariant?: LayoutVariant): RenderResult =>
51 render(
52 <TestBootProvider
53 client={new QueryClient()}
54 auth={{ isAuthReady: false, isLoggedIn: false, user: undefined }}
55 >
56 <MainLayout layoutVariant={layoutVariant}>
57 <p>prerendered page content</p>
58 </MainLayout>
59 </TestBootProvider>,
60 );
61
62 it('hands the header to the rail before hydration and boot', () => {
63 const { container } = renderLayout('v2');

Callers 1

Calls 1

renderFunction · 0.50

Tested by

no test coverage detected