codeceptjs / codeceptjs/CodeceptJS
How to custom _beforeStep
未关闭
- 主要语言
- JavaScript
- 星标
- 4.2k
- 派生
- 757
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 16
描述
#### What are you trying to achieve?
I want to add custom function into _beforeStep hook, I try to follow the instruction:
1. Generate a custom helper:
```
const { Helper } = require('codeceptjs');
class HookHelper extends Helper {
_beforeStep() {
console.log("Hello")
}
}
module.exports = HookHelper;
```
2. Add above custom helper into ```codecept.conf.js```
```
HookHelper: {
require: './helper.js',
},
```
#### What do you get instead?
It did not console.log
* CodeceptJS version: 2.6.1
* NodeJS Version: v10.16.0
* Operating System: Windows 10
* PlayWright 0.12.1
贡献指南
评估
这个 Issue 还没有评估数据。