codeceptjs
Version:
Modern Era Acceptance Testing Framework for NodeJS
117 lines (59 loc) • 1.45 kB
Markdown
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
# Helper
## Parameters
- `config`
## \_after
Hook executed after each test
## \_afterStep
Hook executed after each step
### Parameters
- `step` **any**
## \_afterSuite
Hook executed after each suite
### Parameters
- `suite` **any**
## \_before
Hook executed before each test.
## \_beforeStep
Hook executed before each step
### Parameters
- `step` **any**
## \_beforeSuite
Hook executed before each suite
### Parameters
- `suite` **any**
## \_failed
Hook executed after each failed test
### Parameters
- `test` **any**
## \_finishTest
Hook executed after all tests are executed
### Parameters
- `suite` **any**
## \_init
Hook executed before all tests
## \_passed
Hook executed after each passed test
### Parameters
- `test` **any**
## \_setConfig
Sets config for current test
### Parameters
- `opts`
## \_test
Hook provides a test details
Executed in the very beginning of a test
### Parameters
- `test` **any**
## \_validateConfig
Abstract method to validate config
### Parameters
- `config` **any**
## debug
Print debug message to console (outputs only in debug mode)
### Parameters
- `msg`
## helpers
Access another configured helper: `this.helpers['AnotherHelper']`
## \_config
Abstract method to provide required config options