title: Jest (unable to set unique href for window.parent.location.href)
body: <p>I have in my code a check to see if a page is being loaded inside iframe.</p>
  <p>App.js</p>
  <pre class="lang-js prettyprint-override"><code>if (window.location !== window.parent.location) {
    console.log('App is running inside iframe!');
  }
  </code></pre>
  <p>Jest test...</p>
  <p>App.spec.js</p>
  <pre class="lang-js prettyprint-override"><code>delete window.location
  window.location = new URL(`https://some-fake-url`)
  
  delete window.parent.location
  window.parent.location = new URL(`https://parent-fake-url`);
  </code></pre>
  <p>Inside the Jest test both <code>window.location.href</code> and <code>window.parent.location.href</code> are both set with the same value.</p>
  <p>How can I set each to be unique?</p>