Socket
Book a DemoInstallSign in
Socket

cypress-redux

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-redux

Unofficial Cypress utilities for testing Redux stores

1.0.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

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'

Keywords

Cypress

FAQs

Package last updated on 16 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.