title: Is there a way to mock refetch in MockedProvider - Apollo Client?
body: <p>Here is how I am using MockedProvider. How can I mock refetch in mocks array?</p>
  
  <pre><code>const mocks = [{
          request: {
              query: GET_USERS_BY_FACILITY,
              variables: {
                  facility: 300
              }
          },
          result: {
              data: {
                  GetUsersByFacility: [{
                      nuId: 'Q916983',
                      userName: faker.internet.userName(),
                      profileKey: 'testKey',
                      profileValue: 'testValue',
                      __typename: 'FacilityUser'
                  }]
              }
          },
          refetch: () =&gt; {
              return {
                  data: {
                      GetUsersByFacility: [{
                          nuId: 'Q916983',
                          userName: faker.internet.userName(),
                          profileKey: 'testKey',
                          profileValue: 'testValue',
                          __typename: 'FacilityUser'
                      }]
                  }
              }
          }
      }
  </code></pre>
  
  <p>This test case calls refetch function when delete event is triggered.</p>
  
  <pre><code> it('should be able to click on delete user', async () =&gt; {
          const {getByTestId} = render(
              &lt;MockedProvider mocks={mocks}&gt;
                  &lt;Users selectedFacility={300}/&gt;
              &lt;/MockedProvider&gt;)
  
          await wait(0)
          fireEvent.click(getByTestId('btnDelete'))
      })
  </code></pre>
  
  <p>I have been trying different ways, none seems to work. I get error message as <strong>TypeError: Cannot read property 'refetch' of undefined</strong>.</p>
  
  <p>Thank you very much in hope of an answer.</p>
  
  <p>Regards,
  --Rajani</p>