user.mocks.ts 461 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 './user.api.ts'
  4. export function mockUserQuery(defaults: Mocks.MockDefaultsValue<Types.UserQuery, Types.UserQueryVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.UserDocument, defaults)
  6. }
  7. export function waitForUserQueryCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.UserQuery>(Operations.UserDocument)
  9. }