// Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ import type { SearchQuery } from '#shared/graphql/types.ts' import type { ConfidentTake } from '#shared/types/utils.ts' import { mockGraphQLApi } from '#tests/support/mock-graphql-api.ts' import { SearchDocument } from '../queries/searchOverview.api.ts' export const mockSearchOverview = ( search: ConfidentTake, ) => { return mockGraphQLApi(SearchDocument).willResolve({ search, }) }