subscribe.mocks.ts 565 B

123456789101112
  1. import * as Types from '#shared/graphql/types.ts';
  2. import * as Mocks from '#tests/graphql/builders/mocks.ts'
  3. import * as Operations from './subscribe.api.ts'
  4. export function mockMentionSubscribeMutation(defaults: Mocks.MockDefaultsValue<Types.MentionSubscribeMutation, Types.MentionSubscribeMutationVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.MentionSubscribeDocument, defaults)
  6. }
  7. export function waitForMentionSubscribeMutationCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.MentionSubscribeMutation>(Operations.MentionSubscribeDocument)
  9. }