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

Function renderAt

packages/shared/src/components/shell/ExploreSortMenu.spec.tsx:12–24  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

10}));
11
12const renderAt = (pathname: string) => {
13 jest.mocked(useRouter).mockReturnValue({
14 pathname,
15 events: { on: jest.fn(), off: jest.fn() },
16 replace: jest.fn(),
17 } as unknown as NextRouter);
18
19 return render(
20 <QueryClientProvider client={new QueryClient()}>
21 <ExploreSortMenu />
22 </QueryClientProvider>,
23 );
24};
25
26describe('ExploreSortMenu', () => {
27 it.each([

Callers 1

Calls 1

renderFunction · 0.50

Tested by

no test coverage detected