Commit 5c5ca9b
authored
Ensure
* 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 changesetonError is called when errorPolicy is set to "all" and partial data is returned (apollographql#10383)1 parent 73b0bb5 commit 5c5ca9b
7 files changed
Lines changed: 431 additions & 4 deletions
File tree
- .changeset
- config
- src
- __tests__/__snapshots__
- react/hooks
- __tests__
- testing/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| |||
335 | 337 | | |
336 | 338 | | |
337 | 339 | | |
| 340 | + | |
| 341 | + | |
338 | 342 | | |
339 | 343 | | |
340 | 344 | | |
| |||
0 commit comments