about.mocks.ts 518 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 './about.api.ts'
  4. export function mockProductAboutQuery(defaults: Mocks.MockDefaultsValue<Types.ProductAboutQuery, Types.ProductAboutQueryVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.ProductAboutDocument, defaults)
  6. }
  7. export function waitForProductAboutQueryCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.ProductAboutQuery>(Operations.ProductAboutDocument)
  9. }