kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 309 forks source link

console.error Missing field 'bar' while writing result during test run #1740

Closed vslipchenko closed 2 years ago

vslipchenko commented 2 years ago

Describe the bug During testing of #1739 all tests have passed, but the one from Apollo.spec.ts drops additional console error: image I assume that is because of difference between parameter names. Should not they both be the same ? image If I change it to be the same, test passes successfully without any output

P.S. This prevents me from getting clean test results for #1739

To Reproduce Steps to reproduce the behavior:

Bump @aplollo/client & graphql versions

Expected behavior

Test passes without console error

Environment:

- @angular/cli@^13.0.0
- @angular/core@^13.0.0
- @apollo/client@3.5.5
- apollo-angular@2.6.0
- graphql@16.0.1
- typescript@~4.4.4

Additional context