title: react-testing-library: some portion of debug's output is not visible
body: <p>I am using react jest with react testing library to test my component. 
  I am facing a weird issue. I am usng debug return by render from testing-library.</p>
  
  <pre><code>test('component should work', async () =&gt; {
    const { findByText, debug } = render(&lt;MyComponent /&gt;);
    const myElement = await findByText(/someText/i);
    debug();
  
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/OFO6S.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OFO6S.png" alt="enter image description here"></a></p>
  
  <p>As you can see in the screenshot there are incomplete dev and closing tags for parents are missing.</p>