add.mocks.ts 496 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 './add.api.ts'
  4. export function mockUserAddMutation(defaults: Mocks.MockDefaultsValue<Types.UserAddMutation, Types.UserAddMutationVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.UserAddDocument, defaults)
  6. }
  7. export function waitForUserAddMutationCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.UserAddMutation>(Operations.UserAddDocument)
  9. }