Skip to content

Commit

Permalink
Update user resolver tests to be more robust and have higher confidence
Browse files Browse the repository at this point in the history
Previously, the apollo-server-testing was used for the tests. This had key limitations, such as non-access to context without a low-confidence workaround (see apollographql/apollo-server#2277 fof more info). This limitation also made creating some tests, such as ?should return current user if logged in" impossible. To resolve, migrate to https://github.com/zapier/apollo-server-integration-testing and create the tests that were previously impossible.

* Update queries-mutations constant with queries/mutations for new tests
* refactor the user.test file to remove old approach
* add missing test coverage
  • Loading branch information
deduced committed May 10, 2021
1 parent f993ba3 commit 695c4e2
Show file tree
Hide file tree
Showing 8 changed files with 338 additions and 180 deletions.
128 changes: 90 additions & 38 deletions server/dist/resolvers/user.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 695c4e2

Please sign in to comment.