错误赛普拉斯:> (0 , _cypressCucumberPreprocessor.And) 不是一个函数

Error Cypress : > (0 , _cypressCucumberPreprocessor.And) is not a function

提问人:Ali Hassoun 提问时间:11/14/2023 最后编辑:Ali Hassoun 更新时间:11/15/2023 访问量:26

问:

我在尝试使用 Cypress/Cucumber 运行测试时收到此错误消息,在此处输入图像描述,我已经在所有文件中导入了 AND 关键字,并且我已经安装了所有依赖项。 有什么想法吗? 阿里。

我尝试在赛普拉斯运行测试

cypress cypress-cucumber-preprocessor cypress-component-test-runner cypress-intercept cypress-custom-commands

评论


答:

0赞 Ali Hassoun 11/15/2023 #1

解决


跑:

npm i --强制

之后,您可以运行:

NPX柏树开盘