Unofficial Cypress utilities for testing Redux stores.
npm i -D cypress-redux
Assign your redux store to window.store
so Cypress can access it. We've included a utility that does this automatically when the Cypress runner is detected.
// in your entrypoint file
import registerStore from 'cypress-redux/registerStore'
const store = createStore()
registerStore(store)
Import this library in one of your support files, and you'll be good to go!
// cypress/support/index.(ts|js)
import 'cypress-redux'