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

Function renderMenu

packages/shared/src/features/patchy/PatchyMenu.spec.tsx:39–52  ·  view source on GitHub ↗
(context: PatchyContext)

Source from the content-addressed store, hash-verified

37}));
38
39const renderMenu = (context: PatchyContext) =>
40 render(
41 <QueryClientProvider client={new QueryClient()}>
42 <SpotlightContext.Provider
43 value={
44 { open: mockOpenSpotlight } as unknown as React.ContextType<
45 typeof SpotlightContext
46 >
47 }
48 >
49 <PatchyMenu context={context} />
50 </SpotlightContext.Provider>
51 </QueryClientProvider>,
52 );
53
54const labels = () =>
55 screen.getAllByRole('button').map((element) => element.textContent) as (

Callers 1

Calls 1

renderFunction · 0.70

Tested by

no test coverage detected