Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add apollo-server-integration-testing dependency
You can't really write real integration tests with apollo-server-testing, because it doesn't support servers which rely on the context option being a function that uses the req object despite this functionality being supported by the real apollo server. The official integration example code from Apollo solves this by instantiating an ApolloServer inside the test and mocking the context value by hand. But I don't consider this a real integration test, since you're not using the same instantiation code that your production code uses. * description of issue with apollo-server-testing: apollographql/apollo-server#2277 * workaround: https://github.com/apollographql/fullstack-tutorial/blob/6988f6948668ccc2dea3f7a216dd44bdf25a0b9f/final/server/src/__tests__/integration.js#L68-L74
- Loading branch information