"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMockClient = createMockClient;
const client_1 = require("@apollo/client");
const cache_1 = require("@apollo/client/cache");
const mockLink_js_1 = require("./mockLink.cjs");
// TODO: Deprecate this function
function createMockClient(data, query, variables = {}) {
    return new client_1.ApolloClient({
        link: (0, mockLink_js_1.mockSingleLink)({
            request: { query, variables },
            result: { data },
        }),
        cache: new cache_1.InMemoryCache(),
    });
}
//# sourceMappingURL=mockClient.cjs.map
