src/client/routes/team/teams.graphql.mocks.ts
/**
* This file contains mock responses for the queries defined in the corresponding `.graphql.ts`
* file. It is included in `.storybook/preview.js` to provide default responses for every graphql
* query in Storybook story files.
*/
import { MockedResponse } from '@apollo/client/testing';
import { TeamDocument, TeamQueryResult } from '../../generated/graphql';
import { MOCK_HACKER } from '../../../common/mockObjects';
export const TeamQueryMock: MockedResponse<TeamQueryResult['data']> = {
request: {
query: TeamDocument,
},
result: {
data: {
me: MOCK_HACKER,
},
},
};