Skip to content

Commit

Permalink
Re-export the MockedResponse ResultFunction type
Browse files Browse the repository at this point in the history
This addresses a regression that happened when AC 3 was launched.

Fixes #6540
  • Loading branch information
hwillson committed May 28, 2021
1 parent b8db49b commit a6b599b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. <br/>
[@hwillson](https://github.com/hwillson) in [#8315](https://github.com/apollographql/apollo-client/pull/8315)

### Potentially breaking changes

Expand Down
7 changes: 6 additions & 1 deletion src/utilities/testing/index.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a6b599b

Please sign in to comment.