title: Warning: React does not recognize the `warnKey` prop on a DOM element
body: <p>I am using testing-library/react for routing unit test below is my code
  my test cases getting passed but I am getting console error for</p>
  <p><em><strong>React does not recognize the <code>warnKey</code> prop on a DOM element.</strong></em></p>
  <p>Any Idea ? below is my code and error screenshot</p>
  <pre><code>import {render, screen} from '@testing-library/react'
  import {createMemoryHistory} from 'history'
  import React from 'react'
  import {Router} from 'react-router-dom'
  import '@testing-library/jest-dom/extend-expect'
  
  import AdminPanel from './AdminPanel'
  
  test('full app rendering/navigating',async () =&gt; {
    const history = createMemoryHistory()
    
    render(
      &lt;Router history={history}&gt;
        &lt;AdminPanel /&gt;
      &lt;/Router&gt;,
    )
    let title = await screen.findByText(/Admin Portal/i)
    expect(title).toBeInTheDocument()
  
  }) 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/MJ5Rs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MJ5Rs.png" alt="enter image description here" /></a></p>