@apollo/client
Version:
A fully-featured caching GraphQL client.
14 lines • 534 B
JavaScript
import { QueryManager } from "../../../core/QueryManager.js";
import { mockSingleLink } from "./mockLink.js";
import { InMemoryCache } from "../../../cache/index.js";
export default (function() {
var mockedResponses = [];
for (var _i = 0; _i < arguments.length; _i++) {
mockedResponses[_i] = arguments[_i];
}
return new QueryManager({
link: mockSingleLink.apply(void 0, mockedResponses),
cache: new InMemoryCache({ addTypename: false }),
});
});
//# sourceMappingURL=mockQueryManager.js.map