MCPcopy Create free account
hub / github.com/apollographql/fullstack-tutorial / renderApollo

Function renderApollo

final/client/src/test-utils.tsx:18–27  ·  view source on GitHub ↗
(node: any, { mocks, addTypename, defaultOptions, cache, resolvers, history, ...options }: RenderApolloOptions = {})

Source from the content-addressed store, hash-verified

16};
17
18const renderApollo = (node: any, { mocks, addTypename, defaultOptions, cache, resolvers, history, ...options }: RenderApolloOptions = {}) => {
19 return render(
20 <Router initialEntries={history}>
21 <MockedProvider mocks={mocks} addTypename={addTypename} defaultOptions={defaultOptions} cache={cache} resolvers={resolvers}>
22 {node}
23 </MockedProvider>
24 </Router>,
25 options,
26 );
27};
28
29export * from '@testing-library/react';
30export { renderApollo };

Callers 12

footer.tsxFile · 0.90
launch-tile.tsxFile · 0.90
menu-item.tsxFile · 0.90
cart.tsxFile · 0.90
launches.tsxFile · 0.90
profile.tsxFile · 0.90
login.tsxFile · 0.90
launch.tsxFile · 0.90
cart-item.tsxFile · 0.90
logout-button.tsxFile · 0.90
action-button.tsxFile · 0.90
book-trips.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected