title: Parent node in react-testing-library
body: <p>The component that I have testing renders something this:</p>
  <pre><code>&lt;div&gt;Text&lt;span&gt;span text&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  <p>As it turns out for testing the only reliable text that I have is the 'span text' but I want to get the 'Text' part of the <code>&lt;div&gt;</code>. Using Jest and react-testing-library I can</p>
  <pre><code>await screen.findByText(spanText)
  </code></pre>
  <p>This returns an HTMLElement but it seems limited as I don't have any of the context around the element. For example HTML methods like parentNode and previousSibling return null or undefined. Ideally I would like to get the text content of the parent <code>&lt;div&gt;</code>. Any idea how I can do this with either Jest or react-testing-library?</p>