currentUser.mocks.ts 517 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 './currentUser.api.ts'
  4. export function mockCurrentUserQuery(defaults: Mocks.MockDefaultsValue<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.CurrentUserDocument, defaults)
  6. }
  7. export function waitForCurrentUserQueryCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.CurrentUserQuery>(Operations.CurrentUserDocument)
  9. }