我已经配置了codeceptjs并且在编写第一个测试时遇到了一些我无法弄清楚的错误,代码如下所示。
但奇怪的是它正在完美地执行。但我想确定为什么这是一个错误。我错过了配置或其他任何内容吗?
配置文件:
提前致谢。
答案 0 :(得分:0)
我认为您在安装codeceptjs时拒绝创建自定义角色的请求:
?您想在哪里放置自定义步骤? (./steps_file.js)
steps_file.js看起来像这样:
'use strict';
// in this file you can append custom step methods to 'I' object
module.exports = function() {
return actor({
// Define custom steps here, use 'this' to access default methods of I.
// It is recommended to place a general 'login' function here.
});
}
您可以尝试创建此文件或从配置中删除"I": "./steps_file.js"
。