@wdio/runner 8.18.2 → 8.20.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.
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { EventEmitter } from 'node:events';
3
3
  import type { RunParams } from './types.js';
4
4
  export default class Runner extends EventEmitter {
package/build/index.js CHANGED
@@ -3,7 +3,7 @@ import path from 'node:path';
3
3
  import { EventEmitter } from 'node:events';
4
4
  import logger from '@wdio/logger';
5
5
  import { initialiseWorkerService, initialisePlugin, executeHooksWithArgs } from '@wdio/utils';
6
- import { ConfigParser } from '@wdio/config';
6
+ import { ConfigParser } from '@wdio/config/node';
7
7
  import { _setGlobal } from '@wdio/globals';
8
8
  import { expect, setOptions } from 'expect-webdriverio';
9
9
  import { attach } from 'webdriverio';
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAIxD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC,gBAAgB,CAAA;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CACxB,IAAI,EAAE,YAAY,CAAC,gBAAgB,EACnC,SAAS,CAAC,EAAE,OAAO,GACpB,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAoBjD;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,YAAY,EAAE,YAAY,CAAC,gBAAgB,EAC3C,aAAa,CAAC,EAAE,OAAO,GACxB,OAAO,CAAC,WAAW,CAAC,OAAO,GAAG,W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A8D/D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,iBAAiB,EAAE,MAAM,EAAE,EAC3B,cAAc,EAAE,MAAM,EAAE,YAa3B;AAED,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACtC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAC7D,aAAa,EAAE,OAAO,oDAgBzB"}
package/build/utils.js CHANGED
@@ -1,3 +1,4 @@
1
+ import path from 'node:path';
1
2
  import { deepmerge } from 'deepmerge-ts';
2
3
  import logger from '@wdio/logger';
3
4
  import { remote, multiremote, attach } from 'webdriverio';
@@ -33,6 +34,12 @@ export function sanitizeCaps(caps, filterOut) {
33
34
  * @return {Promise} resolves with browser object
34
35
  */
35
36
  export async function initialiseInstance(config, capabilities, isMultiremote) {
37
+ /**
38
+ * Store all log events in a file
39
+ */
40
+ if (config.outputDir && !process.env.WDIO_LOG_PATH) {
41
+ process.env.WDIO_LOG_PATH = path.join(config.outputDir, 'wdio.log');
42
+ }
36
43
  /**
37
44
  * check if config has sessionId and attach it to a running session if so
38
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "8.18.2",
3
+ "version": "8.20.0",
4
4
  "description": "A WebdriverIO service that runs tests in arbitrary environments",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner",
@@ -30,19 +30,19 @@
30
30
  "typeScriptVersion": "3.8.3",
31
31
  "dependencies": {
32
32
  "@types/node": "^20.1.0",
33
- "@wdio/config": "8.18.2",
34
- "@wdio/globals": "8.18.2",
33
+ "@wdio/config": "8.20.0",
34
+ "@wdio/globals": "8.20.0",
35
35
  "@wdio/logger": "8.16.17",
36
- "@wdio/types": "8.17.0",
37
- "@wdio/utils": "8.18.2",
36
+ "@wdio/types": "8.20.0",
37
+ "@wdio/utils": "8.20.0",
38
38
  "deepmerge-ts": "^5.0.0",
39
39
  "expect-webdriverio": "^4.2.5",
40
40
  "gaze": "^1.1.2",
41
- "webdriver": "8.18.2",
42
- "webdriverio": "8.18.2"
41
+ "webdriver": "8.20.0",
42
+ "webdriverio": "8.20.0"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "910c79f1640f0100e763a507fdcaee9e4f52560f"
47
+ "gitHead": "6aa9e33233a6abc832bb16d2e24aaaa382e206b6"
48
48
  }