Add the ability to provide custom links to the mocked provider
Reasoning:
Specifically, we have a link in our real apollo instance that handles cache updates, thus updating the UI. Without being able to supply this link in the mocked provider, we cannot test UI updates resulting from this link's behavior. I'm sure there are many valid use cases for passing custom links.
Points of interest:
Does this API give enough flexibility for creating any link desired?
Is it okay that the custom links are put between the error and schema links?
New deps:
apollo-link was already a member of the node_modules due to another dependency, so I don't think it adds any overhead.
This PR will:
Reasoning:
Points of interest:
New deps:
apollo-link
was already a member of the node_modules due to another dependency, so I don't think it adds any overhead.