Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure
onError
is called when errorPolicy
is set to "all" and par…
…tial data is returned (#10383) * Minor tweak to test name to make it more clear its intent * Add 2 new tests to ensure onError is called with network and graphql errors * Add wait and tick helpers for testing * Fix typo * Add tests to validate when onError is called when errorPolicy is ignore * Slight verbage change * Add test to validate partial data is removed from result * Add check of data * Add test to validate graphql errors are discarded with partial data * Add missing semicolons * Add missing expectation * Add failing tests for onError not being called with errorPolicy = "all" * Add failing test for calling onCompleted with partial data * Remove unneeded mock in test * Ensure `onError` is called when GraphQL errors are returned * Fix onCompleted mock not passed to hook * Update bundlesize * Update snapshot tests * Add changeset
- Loading branch information