Commit 7390c2d5 authored by Tom Quirk's avatar Tom Quirk

Suggest using mockResolvedValue for $apollo.mutate

parent 61a70805
......@@ -312,7 +312,7 @@ function createComponent(props = {}) {
`ApolloMutation` component exposes `mutate` method via scoped slot. If we want to test this method, we need to add it to mocks:
```javascript
const mutate = jest.fn(() => Promise.resolve());
const mutate = jest.fn().mockResolvedValue();
const $apollo = {
mutate,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment