title: How to override jest.mock defined in a setupFiles (jest.config.js)
body: <p>In jest.config.js:</p>
  
  <pre><code>setupFiles: ['&lt;rootDir&gt;/jest.init.js'],
  </code></pre>
  
  <p>In jest.init.js : </p>
  
  <pre><code>jest.mock('xxx/layout', () =&gt; ({
    ...
    isMobile: false,
    ...
  }))
  </code></pre>
  
  <p>So in all tests that import isMobile from 'xxx/layout' isMobile will be false</p>
  
  <p>Now i tried to override isMobile in some tests like so:</p>
  
  <pre><code>jest.mock('xxx/layout', () =&gt; ({ isMobile: true }))
  
  isMobile.mockImplementation(() =&gt; true)
  </code></pre>
  
  <p>But it's not working!</p>
  
  <p>What would be the good way  to do it?</p>