const ApolloMockingProvider = (props) => { const mocks = mergeResolvers(globalMocks, props.customResolvers); addMockFunctionsToSchema({ schema, mocks }); const client = new ApolloClient({ link: new SchemaLink({ schema }), cache: new InMemoryCache(), }); return ( {props.children} ); }