我编写了一个使用量角器测试应用程序的场景。我的应用程序从登录页面开始,这是非角度页面,然后,登录后移动到角页面。var chaiAsPromised = require('chai-as-promised');var expect = chai.expect; this.Given(/^that I l
我需要在一个使用路径别名的项目中使用Cucumber。只要我导入一个带有路径别名的模块,就会收到一个错误 我已经尝试了这个answer中的解决方案,但我遇到了另一个问题:每当我使用 --require-module tsconfig-paths/register \ 部分,我突然得到了 TypeError: cucumber_1.Given is not a function 每当我尝试运行这些功能时都会出错。 (当我使用const { Given } = require('cucumber')语法时,错误变为TypeError: Given is not a