@wdio/config 8.0.13 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import type { Capabilities, Options, Services } from '@wdio/types';
2
- import type { PathService, ModuleImportService } from '../types';
2
+ import type { PathService, ModuleImportService } from '../types.js';
3
3
  type Spec = string | string[];
4
4
  interface TestrunnerOptionsWithParameters extends Omit<Options.Testrunner, 'capabilities'> {
5
5
  watch?: boolean;
@@ -25,7 +25,7 @@ export default class ConfigParser {
25
25
  */
26
26
  initialConfig?: Partial<TestrunnerOptionsWithParameters>, _pathService?: PathService, _moduleRequireService?: ModuleImportService);
27
27
  /**
28
- * intializes the config object
28
+ * initializes the config object
29
29
  */
30
30
  initialize(object?: MergeConfig): Promise<void>;
31
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigParser.d.ts","sourceRoot":"","sources":["../../src/lib/ConfigParser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAUlE,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAIhE,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;AAK7B,UAAU,+BAAgC,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC;IACtF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAA;IAC9C,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,WAAY,SAAQ,IAAI,CAAC,OAAO,CAAC,+BAA+B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7F,KAAK,CAAC,EAAE,IAAI,EAAE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,IAAI,EAAE;IA8ClE;;OAEG;IACH,SAAS;IAOT;;OAEG;IACH,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM;IAY1B;;;;;;;;OAQG;IACH,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAE,WAAyC,EAAE,cAAc,CAAC,EAAE,MAAM;IAkDtI;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;CAU/C"}
@@ -33,7 +33,7 @@ export default class ConfigParser {
33
33
  this.merge(initialConfig);
34
34
  }
35
35
  /**
36
- * intializes the config object
36
+ * initializes the config object
37
37
  */
38
38
  async initialize(object = {}) {
39
39
  /**
@@ -84,7 +84,7 @@ export default class ConfigParser {
84
84
  * complications when using merge function
85
85
  */
86
86
  this.addService(fileConfig);
87
- for (let hookName of SUPPORTED_HOOKS) {
87
+ for (const hookName of SUPPORTED_HOOKS) {
88
88
  delete fileConfig[hookName];
89
89
  }
90
90
  this._config = deepmerge(this._config, fileConfig);
@@ -186,7 +186,7 @@ export default class ConfigParser {
186
186
  // specs matching the passed pattern else the specs defined inside the config are returned
187
187
  let specs = ConfigParser.getFilePaths(this._config.specs, this._config.rootDir, this._pathService);
188
188
  let exclude = ConfigParser.getFilePaths(this._config.exclude, this._config.rootDir, this._pathService);
189
- let suites = Array.isArray(this._config.suite) ? this._config.suite : [];
189
+ const suites = Array.isArray(this._config.suite) ? this._config.suite : [];
190
190
  // only use capability excludes if (CLI) --exclude or config exclude are not defined
191
191
  if (Array.isArray(capExclude) && exclude.length === 0) {
192
192
  exclude = ConfigParser.getFilePaths(capExclude, this._config.rootDir, this._pathService);
@@ -198,8 +198,8 @@ export default class ConfigParser {
198
198
  // handle case where user passes --suite via CLI
199
199
  if (suites.length > 0) {
200
200
  let suiteSpecs = [];
201
- for (let suiteName of suites) {
202
- let suite = this._config.suites?.[suiteName];
201
+ for (const suiteName of suites) {
202
+ const suite = this._config.suites?.[suiteName];
203
203
  if (!suite) {
204
204
  log.warn(`No suite was found with name "${suiteName}"`);
205
205
  }
@@ -234,7 +234,7 @@ export default class ConfigParser {
234
234
  filteredFile = removeLineNumbers(filteredFile);
235
235
  // Send single file/file glob to getFilePaths - not supporting hierarchy in spec/exclude
236
236
  // Return value will always be string[]
237
- let globMatchedFiles = ConfigParser.getFilePaths(this._pathService.glob(filteredFile, path.dirname(this.#configFilePath)), this._config.rootDir, this._pathService);
237
+ const globMatchedFiles = ConfigParser.getFilePaths(this._pathService.glob(filteredFile, path.dirname(this.#configFilePath)), this._config.rootDir, this._pathService);
238
238
  if (this._pathService.isFile(filteredFile)) {
239
239
  filesToFilter.add(this._pathService.ensureAbsolutePath(filteredFile, path.dirname(this.#configFilePath)));
240
240
  }
@@ -1,4 +1,4 @@
1
- import type { PathService } from '../types';
1
+ import type { PathService } from '../types.js';
2
2
  export default class FileSystemPathService implements PathService {
3
3
  #private;
4
4
  loadFile<T>(path: string): Promise<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystemPathService.d.ts","sourceRoot":"","sources":["../../src/lib/FileSystemPathService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,UAAU,CAAA;AAEhE,MAAM,CAAC,OAAO,OAAO,qBAAsB,YAAW,WAAW;;IAG7D,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAOrC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIjC;;;;;OAKG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAmBhD,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;CAUhE"}
1
+ {"version":3,"file":"FileSystemPathService.d.ts","sourceRoot":"","sources":["../../src/lib/FileSystemPathService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,aAAa,CAAA;AAEnE,MAAM,CAAC,OAAO,OAAO,qBAAsB,YAAW,WAAW;;IAG7D,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAOrC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIjC;;;;;OAKG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAmBhD,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;CAUhE"}
@@ -1,4 +1,4 @@
1
- import type { ModuleImportService } from '../types';
1
+ import type { ModuleImportService } from '../types.js';
2
2
  export default class RequireLibrary implements ModuleImportService {
3
3
  import<T>(module: string): Promise<T>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RequireLibrary.d.ts","sourceRoot":"","sources":["../../src/lib/RequireLibrary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEnD,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,mBAAmB;IAC9D,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAGxC"}
1
+ {"version":3,"file":"RequireLibrary.d.ts","sourceRoot":"","sources":["../../src/lib/RequireLibrary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,mBAAmB;IAC9D,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAGxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/config",
3
- "version": "8.0.13",
3
+ "version": "8.1.0",
4
4
  "description": "A helper utility to parse and validate WebdriverIO options",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-config",
@@ -26,9 +26,9 @@
26
26
  "url": "https://github.com/webdriverio/webdriverio/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@wdio/logger": "8.0.0",
30
- "@wdio/types": "8.0.11",
31
- "@wdio/utils": "8.0.13",
29
+ "@wdio/logger": "8.1.0",
30
+ "@wdio/types": "8.1.0",
31
+ "@wdio/utils": "8.1.0",
32
32
  "decamelize": "^6.0.0",
33
33
  "deepmerge-ts": "^4.2.2",
34
34
  "glob": "^8.0.3",
@@ -42,5 +42,5 @@
42
42
  "minimatch": "^5.0.0",
43
43
  "tsconfig-paths": "^4.1.0"
44
44
  },
45
- "gitHead": "912db21d2cd4552a02b776ba74cae05440b076de"
45
+ "gitHead": "f505134606f99129c816acb00f22e39032e60820"
46
46
  }