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

Method init

lib/codecept.js:101–108  ·  view source on GitHub ↗

* Initialize CodeceptJS at specific dir. * Loads config, requires factory methods * * @param {string} dir

(dir)

Source from the content-addressed store, hash-verified

99 * @param {string} dir
100 */
101 async init(dir) {
102 await this.initGlobals(dir)
103 // Require modules before initializing
104 await this.requireModules(this.requiringModules)
105 // initializing listeners
106 await container.create(this.config, this.opts)
107 await this.runHooks()
108 }
109
110 /**
111 * Creates global variables

Callers 15

initializeCodeceptFunction · 0.95
definitions.jsFile · 0.80
interactive.jsFile · 0.80
list.jsFile · 0.80
run.jsFile · 0.80
info.jsFile · 0.80
dryRun.jsFile · 0.80
run-rerun.jsFile · 0.80
check.jsFile · 0.80
steps.jsFile · 0.80
snippets.jsFile · 0.80
runTests.jsFile · 0.80

Calls 4

initGlobalsMethod · 0.95
requireModulesMethod · 0.95
runHooksMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected