Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(options: Options, validate = true) {
this.options = Utils.merge({}, Configuration.DEFAULTS, options);
this.options.baseDir = Utils.absolutePath(this.options.baseDir);
if (validate) {
this.validateOptions();
}
this.logger = new Logger(this.options.logger, this.options.debug);
this.driver = this.initDriver();
this.platform = this.driver.getPlatform();
this.highlightTheme = fromJson(this.options.highlightTheme!);
this.init();
}