Search code examples
testingcucumbercypresscypress-cucumber-preprocessor

Module '@badeball/cypress-cucumber-preprocessor' has no exported member 'And' - TS2305


I am trying to import "And" keyword from @badeball/cypress-cucumber-preprocessor so I can use it in Cypress/Cucumber, but I get this error

Module "@badeball/cypress-cucumber-preprocessor" has no exported member 'And' - ts(2305)

and I have no idea why.

Other keywords like "Given", "When" and "Then" are imported just fine.


Solution

  • I just installed and imported the "cypress-cucumber-preprocessor/steps" library and it includes "And" keyword. Thanks!