英文:
Step implementation missing for ... In cypress ver - 12.17.2 and cucumber : 18.0.1
问题
我的项目结构。
错误消息。
我不确定为什么会出现错误,因为我已经正确安装并按照所有步骤进行操作。
我期望cucumber-cypress能正常工作。
英文:
my project structure.
error message
I am not sure why i am getting the error as i have followed all installation and steps properly.
i am expecting cucumber-cypress to work properly.
答案1
得分: 3
你没有完全按照步骤执行,可以从这个页面Step definitions查看。
{
"stepDefinitions": [
"cypress/e2e/[filepath]/**/*.{js,ts}",
"cypress/e2e/[filepath].{js,ts}",
"cypress/support/step_definitions/**/*.{js,ts}",
]
}
但是你在上面展示的文件名/扩展名部分 /*.{js,ts}
丢失了。
我建议尝试完全按照模式操作,也许可以解决问题。
英文:
There is one step you did not follow exactly, from this page Step definitions
{
"stepDefinitions": [
"cypress/e2e/[filepath]/**/*.{js,ts}",
"cypress/e2e/[filepath].{js,ts}",
"cypress/support/step_definitions/**/*.{js,ts}",
]
}
but above you show that the filename/extension part /*.{js,ts}
is missing.
I would try following the pattern exactly, maybe that will solve the problem.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论