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

Function respondProfile

packages/webapp/__tests__/ProfileLayoutStaticProps.tsx:28–32  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

26 ({ params: { userId } }) as unknown as GetStaticPropsContext<ProfileParams>;
27
28const respondProfile = (body: unknown, status = 200) =>
29 fetchMock.mockResolvedValue({
30 status,
31 json: async () => body,
32 });
33
34beforeEach(() => {
35 jest.clearAllMocks();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected