diff --git a/src/core/__tests__/ObservableQuery.ts b/src/core/__tests__/ObservableQuery.ts index b75d248dfc..acb57833b5 100644 --- a/src/core/__tests__/ObservableQuery.ts +++ b/src/core/__tests__/ObservableQuery.ts @@ -3722,9 +3722,21 @@ test("does not return partial cache data when `returnPartialData` is false and n data: undefined, }); + expect(observable.getCurrentResult()).toEqual({ + loading: true, + networkStatus: NetworkStatus.setVariables, + data: undefined, + }); + expect(await stream.takeNext()).toEqual({ loading: false, networkStatus: NetworkStatus.ready, data: { __typename: "Car", id: 1, make: "Ford", model: "Pinto" }, }); + + expect(observable.getCurrentResult()).toEqual({ + loading: false, + networkStatus: NetworkStatus.ready, + data: { __typename: "Car", id: 1, make: "Ford", model: "Pinto" }, + }); });