ticketsByOverview.mocks.ts 841 B

1234567891011121314151617
  1. import * as Types from '#shared/graphql/types.ts';
  2. import * as Mocks from '#tests/graphql/builders/mocks.ts'
  3. import * as Operations from './ticketsByOverview.api.ts'
  4. import * as ErrorTypes from '#shared/types/error.ts'
  5. export function mockTicketsByOverviewQuery(defaults: Mocks.MockDefaultsValue<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>) {
  6. return Mocks.mockGraphQLResult(Operations.TicketsByOverviewDocument, defaults)
  7. }
  8. export function waitForTicketsByOverviewQueryCalls() {
  9. return Mocks.waitForGraphQLMockCalls<Types.TicketsByOverviewQuery>(Operations.TicketsByOverviewDocument)
  10. }
  11. export function mockTicketsByOverviewQueryError(message: string, extensions: {type: ErrorTypes.GraphQLErrorTypes }) {
  12. return Mocks.mockGraphQLResultWithError(Operations.TicketsByOverviewDocument, message, extensions);
  13. }