title: Ignore object method for istanbul coverage report
body: <p>I have a set of unit tests for my web application that run using Mocha and jsdom.  I am using jsdom instead of a real browser in order to have my mocha unit tests run as fast as possible and we will have integration tests that will run selenium that will test more of real browser stuff.  I am also using istanbul to generate code coverage reports however some code can not be tested with Mocha/jsdom.  Take this code for example:</p>
  
  <pre><code>var myObject = {
      //...
  
      /* istanbul ignore next */
      _resizeEvent: function() {
          if(this.props.isActive) {
              //.9 match the scss max-height: 90%, this value needs to be kept in sync with the sass code
              this.getDOMNode().querySelector('.modal__content').style.maxHeight = Math.floor(window.innerHeight * .9) + 'px';
              this.getDOMNode().querySelector('.modal__content').style.maxWidth = Math.floor(window.innerWidth * .9) + 'px';
              this._centerPosition();
          }
      },
  
      //...
  }
  </code></pre>
  
  <p>Since there is no real browser, this method can not really be tested with jsdom.  The issue I am running into is that even though I have the <code>/* istanbul ignore next */</code> before the object method, it is still telling me that the code inside the method is not covered (instead of just telling me it is ignored).</p>
  
  <p>Is there an easy way to completely ignore object methods and all of its contents without having to add <code>/* istanbul ignore next */</code> before each statement within the method?</p>