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

Method injectDependencies

lib/mocha/scenarioConfig.js:131–136  ·  view source on GitHub ↗

* Dynamically injects dependencies, see https://codecept.io/pageobjects/#dynamic-injection * @param {Object } dependencies * @returns {this}

(dependencies)

Source from the content-addressed store, hash-verified

129 * @returns {this}
130 */
131 injectDependencies(dependencies) {
132 Object.keys(dependencies).forEach(key => {
133 this.test.inject[key] = dependencies[key]
134 })
135 return this
136 }
137}
138
139export default ScenarioConfig

Callers 1

ui_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected