UNPKG

@wdio/cli

Version:
27 lines (26 loc) 818 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Launcher { configFilePath; args; isWatchMode; #esmLauncher; constructor(configFilePath, args = {}, isWatchMode = false) { this.configFilePath = configFilePath; this.args = args; this.isWatchMode = isWatchMode; this.#esmLauncher = import('../launcher.js').then(({ default: Launcher }) => new Launcher(this.configFilePath, this.args, this.isWatchMode)); } /** * run sequence * @return {Promise} that only gets resolved with either an exitCode or an error */ async run() { return (await this.#esmLauncher).run(); } } async function run() { const { run } = await import('../index.js'); return run(); } module.exports = { Launcher, run };