import * as Types from '#shared/graphql/types.ts'; import * as Mocks from '#tests/graphql/builders/mocks.ts' import * as Operations from './create.api.ts' import * as ErrorTypes from '#shared/types/error.ts' export function mockTicketCreateMutation(defaults: Mocks.MockDefaultsValue) { return Mocks.mockGraphQLResult(Operations.TicketCreateDocument, defaults) } export function waitForTicketCreateMutationCalls() { return Mocks.waitForGraphQLMockCalls(Operations.TicketCreateDocument) } export function mockTicketCreateMutationError(message: string, extensions: {type: ErrorTypes.GraphQLErrorTypes }) { return Mocks.mockGraphQLResultWithError(Operations.TicketCreateDocument, message, extensions); }