MCPcopy
hub / github.com/codeceptjs/CodeceptJS / config

Method config

lib/mocha/featureConfig.js:60–73  ·  view source on GitHub ↗

* Configures a helper. * Helper name can be omitted and values will be applied to first helper. * @param {string | Object | FeatureConfigCallback} helper * @param {Object } [obj] * @returns {this}

(helper, obj)

Source from the content-addressed store, hash-verified

58 * @returns {this}
59 */
60 config(helper, obj) {
61 if (!obj) {
62 obj = helper
63 helper = 0
64 }
65 if (typeof obj === 'function') {
66 obj = obj(this.suite)
67 }
68 if (!this.suite.config) {
69 this.suite.config = {}
70 }
71 this.suite.config[helper] = obj
72 return this
73 }
74
75 /**
76 * Append a tag name to scenario title

Callers 4

ui_test.jsFile · 0.45
ui_test.jsFile · 0.45
config_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected