title: React-Testing-Library/Jest-Dom - Received value must be an HTMLElement or an SVGElement
body: <p>I'm new to unit testing and I'm trying to render a component to learn more about the library.</p>
  <p>I'm trying to follow <a href="https://testing-library.com/docs/react-native-testing-library/example-intro" rel="nofollow noreferrer">this</a> guide.</p>
  <p><strong>Component</strong></p>
  <pre class="lang-js prettyprint-override"><code>&lt;TouchableOpacity
      style={style}
      onPress={onPress}
      accessibilityRole=&quot;button&quot;
  &gt;
      &lt;AppText style={textStyle}&gt;{title.toUpperCase()}&lt;/AppText&gt;
  &lt;/TouchableOpacity&gt; 
  </code></pre>
  <p><strong>Test</strong></p>
  <pre class="lang-js prettyprint-override"><code>it(&quot;Has the correct title in the button&quot;, () =&gt; {
      const { getByText } = render(&lt;AppButton title=&quot;Hello&quot; /&gt;);
    
      expect(getByText(&quot;HELLO&quot;)).toBeInTheDocument();
  });
  </code></pre>
  <p>I'm simply trying to see that the component renders correctly but I get the error</p>
  <pre><code>received value must be an HTMLElement or an SVGElement.
      Received has type:  object
      Received has value: {&quot;_fiber&quot;: {&quot;_debugHookTypes&quot;: null, &quot;_debugID&quot;: 40, &quot;_debugIsCurrentlyTiming&quot;: false, &quot;_debugNeedsRemount&quot;: false, &quot;_debugOwner&quot;: [FiberNode], &quot;_debugSource&quot;: null, &quot;actualDuration&quot;: 0, &quot;actualStartTime&quot;: -1, &quot;alternate&quot;: null, &quot;child&quot;: [FiberNode], &quot;childExpirationTime&quot;: 0, &quot;dependencies&quot;: null, &quot;effectTag&quot;: 1, &quot;elementType&quot;: [Function Component], &quot;expirationTime&quot;: 0, &quot;firstEffect&quot;: null, &quot;index&quot;: 0, &quot;key&quot;: null, &quot;lastEffect&quot;: null, &quot;memoizedProps&quot;: [Object], &quot;memoizedState&quot;: null, &quot;mode&quot;: 0, &quot;nextEffect&quot;: null, &quot;pendingProps&quot;: [Object], &quot;ref&quot;: null, &quot;return&quot;: [FiberNode], &quot;selfBaseDuration&quot;: 0, &quot;sibling&quot;: null, &quot;stateNode&quot;: [Component], &quot;tag&quot;: 1, &quot;treeBaseDuration&quot;: 0, &quot;type&quot;: [Function Component], &quot;updateQueue&quot;: [Object]}}
  </code></pre>
  <p>Any advice on what I'm doing wrong?</p>