title: Jest + MockImplementationOnce + is not working for 2nd time
body: <p>I am using JEST framework for unit testing for my node.js project. I Used mockImplementationOnce for mocking thirdParty library methods as follows:
  jest.mock('abc', () =&gt; {
  return { a: { b: jest.fn() } };
  });
  const abcjs= require('abc');</p>
  <pre><code>describe(&quot;1st test&quot;, () =&gt; { 
    test(&quot;should return true&quot;, async () =&gt; {
      abcjs.a.b.mockImplementationOnce(() =&gt; Promise.resolve(
        return true}
      ));
    });
  });
  
  describe(&quot;2nd test&quot;, () =&gt; { 
    test(&quot;should return false&quot;, async () =&gt; {
      abcjs.a.b.mockImplementationOnce(() =&gt; Promise.resolve(
        return false}
      ));
    });
  });
  </code></pre>
  <p>1st test executed successfully , but <strong>2nd test Its calling the actual method, its not mocking.</strong>
  I tried resetting mocks afterEach but it didn't help.</p>