title: How to access redux store in Cypress if the application is running outside of Cypress tests
body: <p>In my E2E Cypress tests, I would like to access the Redux store of the application under test and dispatch some actions to change some of the redux store value. I've read some blogs and tutorials about accessing Redux store from Cypress (<a href="https://www.cypress.io/blog/2018/11/14/testing-redux-store/" rel="nofollow noreferrer">https://www.cypress.io/blog/2018/11/14/testing-redux-store/</a>) that I need to expose the application store in the <strong>src/index.js</strong> which should sits inside the application package.</p>
  <p>For your information, our &quot;application under test&quot; and Cypress tests sit in different project structure (different package names).</p>
  <pre><code>const store = createStore(reducer)
  
  render(
    &lt;Provider store={store}&gt;
      &lt;App /&gt;
    &lt;/Provider&gt;,
    document.getElementById('root')
  )
  
  // expose store when run in Cypress
  if (window.Cypress) {
    window.store = store
  }
  </code></pre>
  <p>Is it possible for Cypress to access the redux store of the application which runs in a different package?</p>