title: Change element size using Jest
body: <p>I have following code in my component</p>
  
  <pre><code>var rect = ReactDOM.findDOMNode(this).getBoundingClientRect();
  </code></pre>
  
  <p>I use <a href="https://d3js.org/" rel="noreferrer">d3js</a> and render graph in the component. But when I run test there are any <strong>svg</strong> tags. I assume that it happens because all <strong>rect's</strong> fields equals 0.</p>
  
  <p>Here is output for <em>console.log(rect)</em> in browser:</p>
  
  <blockquote>
    <p>ClientRect {top: 89, right: 808, bottom: 689, left: 8, width: 800…}</p>
  </blockquote>
  
  <p>and when I run test:</p>
  
  <blockquote>
    <p>{ bottom: 0, height: 0, left: 0, right: 0, top: 0, width: 0 }</p>
  </blockquote>
  
  <p>So is there a way to set size of the element?</p>