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

Function mockGraphQL

packages/shared/__tests__/helpers/graphql.ts:22–30  ·  view source on GitHub ↗
(
  res: MockedGraphQLResponse<TData>,
)

Source from the content-addressed store, hash-verified

20}
21
22export const mockGraphQL = <TData = Record<string, any>>(
23 res: MockedGraphQLResponse<TData>,
24): void => {
25 nock('http://localhost:3000')
26 .post('/graphql', {
27 ...res.request,
28 })
29 .reply(200, res.result);
30};
31
32export const completeActionMock = ({
33 action,

Callers 15

Feed.spec.tsxFile · 0.90
mockRecoveryQueryFunction · 0.90
mockRecoveryMutationFunction · 0.90
mockAlertsMutationFunction · 0.90
SquadList.spec.tsxFile · 0.90
openedMembersModalFunction · 0.90
SquadGrid.spec.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected