title: Expected one assertion to be called but received zero assertion calls
body: <p>I am trying to test a method using Jest... The method should return Promise.reject() .</p>
  
  <p>Here is the code I wrote:</p>
  
  <pre><code>test('testing Invalid Response Type', () =&gt; {       
          const client = new DataClient();
  
          client.getSomeData().then(response =&gt; {
              console.log("We got data: "+ response);
          }).catch(e =&gt; {
              console.log("in catch");
              expect(e).toBeInstanceOf(IncorrectResponseTypeError);
  
          });
          expect.assertions(1);
  
    });
  </code></pre>
  
  <p>When I run the test, it prints "in catch" but fails with this exception:
   <strong>Expected one assertion to be called but received zero assertion calls.</strong></p>
  
  <pre><code>console.log src/data/dataclient.test.js:25
        in catch
  
    ● testing Invalid Response Type
  
      expect.assertions(1)
  
      Expected one assertion to be called but received zero assertion calls.
  
        at extractExpectedAssertionsErrors (node_modules/expect/build/extract_expected_assertions_errors.js:37:19)
            at &lt;anonymous&gt;
        at process._tickCallback (internal/process/next_tick.js:188:7)
  </code></pre>