import { ApolloClient } from "@apollo/client";
import { InMemoryCache } from "@apollo/client/cache";
import { mockSingleLink } from "./mockLink.js";
// TODO: Deprecate this function
export function createMockClient(data, query, variables = {}) {
    return new ApolloClient({
        link: mockSingleLink({
            request: { query, variables },
            result: { data },
        }),
        cache: new InMemoryCache(),
    });
}
//# sourceMappingURL=mockClient.js.map
