subgraph-sync
Version:
React hooks and components for tracking subgraph synchronization states with Apollo Client
10 lines (9 loc) • 352 B
TypeScript
import { ReactNode } from 'react';
/**
* Creates a wrapper component with MockedProvider for testing
* @param mocks - Array of mocked GraphQL queries/mutations
* @returns Wrapper component function
*/
export declare const createMockWrapper: (mocks: any[]) => ({ children }: {
children: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;