Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
jest.resetAllMocks();
const transport = createTransport("https://some.graphql.api/");
client = createClient(transport, { idFields: ["id"] });
});beforeEach(() => {
jest.resetAllMocks();
const transport = createTrasport("https://some.graphql.api/");
client = createClient(transport, { idFields: ["id"] });
});beforeEach(() => {
jest.resetAllMocks();
client = createClient(createTrasport("https://some.graphql.api/"), { idFields: ["id"] });
});beforeEach(() => {
jest.resetAllMocks();
const transport = createTransport("https://some.graphql.api/");
client = createClient(transport, { idFields: ["id"] });
});import createGrafooConsumer from "@grafoo/react";
import createClient from "@grafoo/core";
const client = createClient("https://api.graph.cool/simple/v1/cj28ccc28umr50115gjodwzix");
if (process.env.NODE_ENV !== "production") window.client = client;
const Consumer = createGrafooConsumer(client);
export default Consumer;import "./globalstyles";
import createClient from "@grafoo/core";
import bootstrap from "./bootstrap";
const client = createClient("https://api.graph.cool/simple/v1/cj28ccc28umr50115gjodwzix");
if (process.env.NODE_ENV !== "production") window.client = client;
bootstrap(client);
if (module.hot) {
module.hot.accept(["./bootstrap"], () => {
const { default: nextBootstrap } = require("./bootstrap");
nextBootstrap(client);
});
}import createClient from "@grafoo/core";
const client = createClient("https://api.graph.cool/simple/v1/cj28ccc28umr50115gjodwzix");
if (process.env.NODE_ENV !== "production") window.client = client;
export default client;