Package Exports
- cypress-redux
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cypress-redux) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cypress-redux
Unofficial Cypress utilities for testing Redux stores.
npm i -D cypress-redux
Configuration
1. Expose the Redux store for your application
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)
2. Import Cypress commands
Import this library in one of your support files, and you'll be good to go!
cypress/support/index.(ts|js)
import 'cypress-redux'