* Initialize CodeceptJS at specific dir. * Loads config, requires factory methods * * @param {string} dir
(dir)
| 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 |
no test coverage detected