-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gateway: stop using apollo-server-testing (#554)
I've been making the assertion in various issues on `apollo-server` that I don't feel like `apollo-server-testing` has much value over using the `executeOperation` method (which was added to AS as part of implementing `apollo-server-testing`) directly. I figured it was worth trying out my suggestion over on this repo (esp when I noticed #553 upgrading `apollo-server-testing`). My opinion is that the version without `createTestClient` is more clear in these particular tests in that adding an intermediate `call` object only serves to obfuscate. The one nice thing that `createTestClient` does is allow you to pass an AST rather than a string for the operation. We could change `executeOperation` to support this directly too, though in this case just changing the tests to not create AST nodes was easy enough.
- Loading branch information
Showing
5 changed files
with
9 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters