title: how to test fallback using react testing library
body: <p>I'm looking for a way to test a React.Suspense fallback using react-testing-library.  Consider this example:</p>
  
  <pre><code>const MyLazyThing = lazy(() =&gt; import('./index'));
  
  export default function MyThing(props) {
    return (
      &lt;Suspense fallback="loading..."&gt;
        &lt;MyLazyThing {...props} /&gt;
      &lt;/Suspense&gt;
    );
  }
  </code></pre>
  
  <p>using <code>getByText('loading...')</code> doesn't seem to work.  wondering if there's a good way to test this in RTL.</p>
  
  <p>thx</p>