title: Getting rid of testing errors in react native
body: <p>I am getting the following testing errors:</p>
  <pre><code>    console.warn
        err!
  
        at node_modules/react-query/lib/core/mutation.js:115:32
        at tryCallOne (node_modules/react-native/node_modules/promise/lib/core.js:37:12)
        at node_modules/react-native/node_modules/promise/lib/core.js:123:15
        at flush (node_modules/asap/raw.js:50:29)
  </code></pre>
  <p>My tests are passing just fine but I need to get rid of these errors and I am unsure on how to do that?</p>
  <p>I did add the following line to jestSetup.js file:
  <code>jest.spyOn(console, 'warn').mockReturnValue();</code></p>
  <p>This does get rid of the errors but I would like a more permanent solution.</p>