title: When mocking components to DOM, i get the error `TypeError: Cannot read property 'jsxDEV' of undefined`
body: <pre><code>  TypeError: Cannot read property 'jsxDEV' of undefined
  
        38 | const TAB_ROUTES_TESTID = 'tabroutestestid'
        39 | // @ts-expect-error apparently TS doesn't like made up dom elements
      &gt; 40 | jest.mock('./LazyDeviceTabRoutes', () =&gt; &lt;mock-LazyDeviceTabRoutes data-testid={TAB_ROUTES_TESTID} /&gt;)
  </code></pre>
  <p>I'm doing <code>import React from 'react'</code> just in case, and otherwise, I have no idea why I would get this error. I'd add more context, but I don't know what context to add, because the mock is simple and it's erroring on the jsx/html itsself. (the little carrot is pointing at <code>&lt;mock-</code>)</p>