linkAdd.mocks.ts 500 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 './linkAdd.api.ts'
  4. export function mockLinkAddMutation(defaults: Mocks.MockDefaultsValue<Types.LinkAddMutation, Types.LinkAddMutationVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.LinkAddDocument, defaults)
  6. }
  7. export function waitForLinkAddMutationCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.LinkAddMutation>(Operations.LinkAddDocument)
  9. }