title: Retrieving data from Cookies (js-cookie) while testing in jest
body: <p>How can I test Cookies.get with jest testing</p>
  
  <p>I have util.js folder where I call function </p>
  
  <pre><code>const fullObjectStr = Cookies.get(cookieName);
  </code></pre>
  
  <p>So, I want to test it with jest. How can I do that?</p>
  
  <p>I've tried a few things from this question: <a href="https://stackoverflow.com/questions/50761393/how-to-mock-cookie-getlanguage-in-jest">How to mock Cookie.get(&#39;language&#39;) in JEST</a> but it doesn't work.</p>