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

Function renderLayout

packages/webapp/__tests__/MainLayout.tsx:24–35  ·  view source on GitHub ↗
(user: LoggedUser | null = null)

Source from the content-addressed store, hash-verified

22 });
23
24 const renderLayout = (user: LoggedUser | null = null): RenderResult => {
25 const client = new QueryClient();
26
27 return render(
28 <TestBootProvider
29 client={client}
30 auth={{ user: user as LoggedUser, isLoggedIn: !!user, showLogin }}
31 >
32 <MainLayout />
33 </TestBootProvider>,
34 );
35 };
36
37 const user = {
38 id: 'u1',

Callers 1

MainLayout.tsxFile · 0.70

Calls 1

renderFunction · 0.50

Tested by

no test coverage detected