organization.mocks.ts 525 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 './organization.api.ts'
  4. export function mockOrganizationQuery(defaults: Mocks.MockDefaultsValue<Types.OrganizationQuery, Types.OrganizationQueryVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.OrganizationDocument, defaults)
  6. }
  7. export function waitForOrganizationQueryCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.OrganizationQuery>(Operations.OrganizationDocument)
  9. }