title: expect(...).toHaveAttribute is not a function - Why?
body: <p>I created some basic tests and followed the getting started guide on Jests website, but toHaveAttribute is not a function apparently</p>
  <pre><code>import React from &quot;react&quot;;
  import { fireEvent, render } from &quot;@testing-library/react&quot;;
  import userEvent from &quot;@testing-library/user-event&quot;;
  
  import { App } from &quot;../App&quot;;
  
  test(&quot;allows users to add items to their list&quot;, () =&gt; {
    const { getByText, getByLabelText, getByTestId } = render(&lt;App /&gt;);
  
    const input = getByLabelText(&quot;What needs to be done?&quot;);
    userEvent.type(getByTestId(&quot;email&quot;), &quot;Hello World!&quot;)
    expect(getByTestId(&quot;email&quot;)).toHaveAttribute(&quot;value&quot;, &quot;Hello, World!&quot;)
  })
  </code></pre>
  <p>TypeError: expect(...).toHaveAttribute is not a function</p>
  <pre><code>  10 |   const input = getByLabelText(&quot;What needs to be done?&quot;);
    11 |   userEvent.type(getByTestId(&quot;email&quot;), &quot;Hello World!&quot;)
  &gt; 12 |   expect(getByTestId(&quot;email&quot;)).toHaveAttribute(&quot;value&quot;, &quot;Hello, World!&quot;)
       |                                ^
    13 | })
  </code></pre>
  <p>I followed the tutorial exactly so im unsure why this is happening.</p>