From a6b599b0aa177edab1013888e919f8823f829200 Mon Sep 17 00:00:00 2001 From: hwillson Date: Fri, 28 May 2021 14:03:38 -0400 Subject: [PATCH] Re-export the MockedResponse ResultFunction type This addresses a regression that happened when AC 3 was launched. Fixes #6540 --- CHANGELOG.md | 2 ++ src/utilities/testing/index.ts | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a4a12db828..250c686ddbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ }) ``` [@benjamn](https://github.com/benjamn) in [#7810](https://github.com/apollographql/apollo-client/pull/7810) +- Make sure the `MockedResponse` `ResultFunction` type is re-exported.
+ [@hwillson](https://github.com/hwillson) in [#8315](https://github.com/apollographql/apollo-client/pull/8315) ### Potentially breaking changes diff --git a/src/utilities/testing/index.ts b/src/utilities/testing/index.ts index db8575a1e08..45c2f3198f1 100644 --- a/src/utilities/testing/index.ts +++ b/src/utilities/testing/index.ts @@ -1,5 +1,10 @@ export { MockedProvider, MockedProviderProps } from './mocking/MockedProvider'; -export { MockLink, mockSingleLink, MockedResponse } from './mocking/mockLink'; +export { + MockLink, + mockSingleLink, + MockedResponse, + ResultFunction +} from './mocking/mockLink'; export { MockSubscriptionLink, mockObservableLink