title: Mocking a cookie in react-cookie
body: <p>I'm trying to set a cookie in my test to make sure it's getting cleared out in my component:</p>
  
  <pre><code>import Cookies from 'universal-cookie';
  
  test('successfully logs the user out', async () =&gt; {
    const cookie = new Cookies()
    cookie.set('authtoken', 'some-token')
    const { getByText } = render(&lt;Logout/&gt;)
  })
  </code></pre>
  
  <p>But in my Logout component the cookies object is empty:</p>
  
  <pre><code>export default function Logout() {
    const [cookies, setCookie, removeCookie] = useCookies(['authtoken'])
    console.log(cookies)
  }
  </code></pre>
  
  <p>Is there another way to do this? Preferably one that isn't passing the cookie as a prop.</p>