title: "TypeError: graphql.isType is not a function"
body: <p>I’m running a GraphQL/Apollo/React stack and am trying to implement MockedProvider in my tests since it seems like a great way of abstracting away a lot of mocks. However, I keep running into the following error. I’ve tried updating, stepping through, and I’m still not sure why the import is failing. Any help would be great, thanks!</p>
  <p><a href="https://i.stack.imgur.com/muvYL.png" rel="nofollow noreferrer">My test code and the error</a></p>
  <p><strong>Test Code:</strong></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>test.only('Renders with MockedProvider', () =&gt; {
    render(
      &lt;MockedProvider mocks={mocks}&gt;
        &lt;DailyInspection /&gt;
      &lt;/MockedProvider&gt;
    )
  })</code></pre>
  </div>
  </div>
  </p>
  <p><strong>Error:</strong></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>TypeError: graphql.isType is not a function
  
         6 | import userEvent from '@testing-library/user-event'
         7 | import DailyInspection from '../index'
      &gt;  8 | import { MockedProvider } from '@apollo/client/testing'
           | ^
         9 |
        10 | import {
        11 |   GetProjectControlPointsIdsAndGuidsDocument,
  
        at removeTemporaryGlobals (../node_modules/@apollo/client/utilities/globals/graphql.js:4:5)
        at Object.&lt;anonymous&gt; (../node_modules/@apollo/client/utilities/globals/index.js:5:1)
        at Object.&lt;anonymous&gt; (../node_modules/@apollo/client/testing/testing.cjs.js:6:17)
        at Object.&lt;anonymous&gt; (src/views/DailyInspection/__tests__/DailyInspection.test.tsx:8:1)</code></pre>
  </div>
  </div>
  </p>