title: Testing library - should I explicitly use expect?
body: <p>Within the <a href="https://testing-library.com/" rel="nofollow noreferrer">testing library</a> framework, you can write a test like this where the expectation is implied, i.e. the test will fail as a result of the <code>getByText</code> method throwing if it can't find the given text:</p>
  <pre><code>it('sets some text', () =&gt; {
    ...
    screen.getByText('someText');
  });
  </code></pre>
  <p>Although this works, this is relying on the implementation detail of testing library. So, I'm curious to know if this is accepted, or whether an explicit <code>expect</code> should be in place, like</p>
  <pre><code>it('sets some text', () =&gt; {
    ...
    expect(screen.getByText('someText')).toBeInTheDocument();
  });
  </code></pre>