MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / setHelper

Method setHelper

lib/step/func.js:14–16  ·  view source on GitHub ↗
(helper)

Source from the content-addressed store, hash-verified

12
13 // helper is optional, if we need to allow step to access helper methods
14 setHelper(helper) {
15 this.helper = helper
16 }
17
18 run() {
19 if (!this.fn) throw new Error('Function is not set')

Callers 1

prepareStepFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected