Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypress-cucumber-steps

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-cucumber-steps

Cypress Cucumber step definitions

  • 1.26.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
decreased by-9.48%
Maintainers
1
Weekly downloads
 
Created
Source

cypress-cucumber-steps

NPM

NPM version build cypress

Cypress Cucumber step definitions. See docs and examples.

Prerequisites

Install peerDependencies:

npm install --save-dev cypress @badeball/cypress-cucumber-preprocessor

Or using Yarn:

yarn add --dev cypress @badeball/cypress-cucumber-preprocessor

Then set up Cypress and cypress-cucumber-preprocessor.

Installation

NPM:

npm install --save-dev cypress-cucumber-steps

Yarn:

yarn add --dev cypress-cucumber-steps

Usage

Create a directory for the common step definitions:

mkdir -p cypress/support/step_definitions/

Create a step definition file:

touch cypress/support/step_definitions/**/*.{js,ts}

Replace **/*.{js,ts} with a filename like index.ts.

Require the module with TypeScript:

import 'cypress-cucumber-steps';

Or require the module with CommonJS:

require('cypress-cucumber-steps');

Now the step definition can be used in feature files:

# cypress/e2e/example.feature
When I visit "https://example.com/"
Then I see text "Example Domain"

See docs and examples.

Release

Release is automated with Release Please.

License

MIT

Keywords

FAQs

Package last updated on 20 Dec 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc