0

(0 , _cypressCucumberPreprocessor.And) is not a function

enter image description here

2 Answers 2

1

It's just a simple oversight, it means you are missing an import for And - any Cucumber keywords used in the test needs to be imported.

import { Then, When, And } from "@badeball/cypress-cucumber-preprocessor"
Sign up to request clarification or add additional context in comments.

Comments

0

your cypress is not fully installed. i had the same problem run :

npm i --force

after that you can run :

npx cypress open

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.