title: Jest: how to count call from mock methods called via `call` or `apply`?
body: <p>How can I use mocks to count function calls made via <code>call</code> or <code>apply</code></p>
  
  <pre><code>// mylib.js
  module.exports = {
    requestInfo: function(model, id) {
      return `The information for ${model} with ID ${id} is foobar`;
    },
    execute: function(name) {
      return this[name] &amp;&amp; this[name].apply(this, [].slice.call(arguments, 1));
    },
  };
  </code></pre>
  
  <pre><code>// mylib.test.js
  jest.mock('./mylib.js');
  
  var myLib = require('./mylib.js');
  
  test('', () =&gt; {
    myLib.execute('requestInfo', 'Ferrari', '14523');
    expect(myLib.execute.mock.calls.length).toBe(1); // Success!
    expect(myLib.requestInfo.mock.calls.length).toBe(1); // FAIL
  });
  </code></pre>
  
  <p>If I explicitly call <code>myLib.requestInfo</code>, the second expectation succeeds.</p>
  
  <p>Is there a way to watch module mock calls whose functions were called via <code>apply</code> or <code>call</code>?</p>