@wdio/config 8.7.0 → 8.8.4

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.
@@ -37,7 +37,7 @@ export default class ConfigParser {
37
37
  initialize(object?: MergeConfig): Promise<void>;
38
38
  /**
39
39
  * merges config file with default values
40
- * @param {String} filename path of file relative to current directory
40
+ * @param {string} filename path of file relative to current directory
41
41
  */
42
42
  private addConfigFile;
43
43
  /**
@@ -47,7 +47,7 @@ export default class ConfigParser {
47
47
  private merge;
48
48
  /**
49
49
  * Add hooks from an existing service to the runner config.
50
- * @param {Object} service - an object that contains hook methods.
50
+ * @param {object} service - an object that contains hook methods.
51
51
  */
52
52
  addService(service: Services.Hooks): void;
53
53
  /**
@@ -59,7 +59,7 @@ export default class ConfigParser {
59
59
  * sets config attribute with file paths from filtering
60
60
  * options from cli argument
61
61
  *
62
- * @param {String[]} cliArgFileList list of files in a string form
62
+ * @param {string[]} cliArgFileList list of files in a string form
63
63
  * @param {Object} config config object that stores the spec and exclude attributes
64
64
  * cli argument
65
65
  * @return {String[]} List of files that should be included or excluded
@@ -87,7 +87,7 @@ export default class ConfigParser {
87
87
  * returns specs files with the excludes filtered
88
88
  *
89
89
  * @param {String[] | String[][]} spec files - list of spec files
90
- * @param {String[]} exclude files - list of exclude files
90
+ * @param {string[]} exclude files - list of exclude files
91
91
  * @return {String[] | String[][]} list of spec files with excludes removed
92
92
  */
93
93
  filterSpecs(specs: Spec[], exclude: string[]): Spec[];
@@ -67,7 +67,7 @@ export default class ConfigParser {
67
67
  }
68
68
  /**
69
69
  * merges config file with default values
70
- * @param {String} filename path of file relative to current directory
70
+ * @param {string} filename path of file relative to current directory
71
71
  */
72
72
  async addConfigFile(filename) {
73
73
  if (typeof filename !== 'string') {
@@ -164,7 +164,7 @@ export default class ConfigParser {
164
164
  }
165
165
  /**
166
166
  * Add hooks from an existing service to the runner config.
167
- * @param {Object} service - an object that contains hook methods.
167
+ * @param {object} service - an object that contains hook methods.
168
168
  */
169
169
  addService(service) {
170
170
  const addHook = (hookName, hook) => {
@@ -256,7 +256,7 @@ export default class ConfigParser {
256
256
  * sets config attribute with file paths from filtering
257
257
  * options from cli argument
258
258
  *
259
- * @param {String[]} cliArgFileList list of files in a string form
259
+ * @param {string[]} cliArgFileList list of files in a string form
260
260
  * @param {Object} config config object that stores the spec and exclude attributes
261
261
  * cli argument
262
262
  * @return {String[]} List of files that should be included or excluded
@@ -379,7 +379,7 @@ export default class ConfigParser {
379
379
  * returns specs files with the excludes filtered
380
380
  *
381
381
  * @param {String[] | String[][]} spec files - list of spec files
382
- * @param {String[]} exclude files - list of exclude files
382
+ * @param {string[]} exclude files - list of exclude files
383
383
  * @return {String[] | String[][]} list of spec files with excludes removed
384
384
  */
385
385
  filterSpecs(specs, exclude) {
@@ -1 +1 @@
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
+ {"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;IAoBhD,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;CAUhE"}
@@ -30,13 +30,13 @@ export default class FileSystemPathService {
30
30
  * and we also want to be able to find files with these characters included
31
31
  * we add an additional check to see if the file as pattern exists.
32
32
  * add file to globResult only if filename doesn't include pattern(*)
33
- * and globResult doest contain the fileName
33
+ * and globResult doesn't contain the fileName
34
34
  * and file should be available
35
35
  */
36
36
  if (!pattern.includes('*') && !globResult.includes(pattern) && !globResult.includes(fileName) && fs.existsSync(fileName)) {
37
37
  globResult.push(fileName);
38
38
  }
39
- return globResult;
39
+ return globResult.sort();
40
40
  }
41
41
  ensureAbsolutePath(filepath, rootDir) {
42
42
  if (filepath.startsWith('file://')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/config",
3
- "version": "8.7.0",
3
+ "version": "8.8.4",
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",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@wdio/logger": "8.6.6",
33
- "@wdio/types": "8.7.0",
34
- "@wdio/utils": "8.7.0",
33
+ "@wdio/types": "8.8.4",
34
+ "@wdio/utils": "8.8.4",
35
35
  "decamelize": "^6.0.0",
36
36
  "deepmerge-ts": "^5.0.0",
37
37
  "glob": "^9.3.0",
@@ -42,8 +42,8 @@
42
42
  "access": "public"
43
43
  },
44
44
  "devDependencies": {
45
- "minimatch": "^8.0.2",
45
+ "minimatch": "^9.0.0",
46
46
  "tsconfig-paths": "^4.1.0"
47
47
  },
48
- "gitHead": "2615d963dc561aed0920c519ed5c27720e1a636c"
48
+ "gitHead": "e88a296000de70344fbf19d0d63a54cb1a617427"
49
49
  }