@wdio/runner 8.23.0 → 8.23.2

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.js CHANGED
@@ -2,14 +2,14 @@ import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
3
  import { EventEmitter } from 'node:events';
4
4
  import logger from '@wdio/logger';
5
- import { initialiseWorkerService, initialisePlugin, executeHooksWithArgs } from '@wdio/utils';
5
+ import { initializeWorkerService, initializePlugin, executeHooksWithArgs } from '@wdio/utils';
6
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';
10
10
  import BrowserFramework from './browser.js';
11
11
  import BaseReporter from './reporter.js';
12
- import { initialiseInstance, filterLogTypes, getInstancesData } from './utils.js';
12
+ import { initializeInstance, filterLogTypes, getInstancesData } from './utils.js';
13
13
  const log = logger('@wdio/runner');
14
14
  export default class Runner extends EventEmitter {
15
15
  _browser;
@@ -63,13 +63,13 @@ export default class Runner extends EventEmitter {
63
63
  _automationProtocol: this._config.automationProtocol,
64
64
  automationProtocol: './protocol-stub.js'
65
65
  }, caps);
66
- (await initialiseWorkerService(this._config, caps, args.ignoredWorkerServices)).map(this._configParser.addService.bind(this._configParser));
66
+ (await initializeWorkerService(this._config, caps, args.ignoredWorkerServices)).map(this._configParser.addService.bind(this._configParser));
67
67
  const beforeSessionParams = [this._config, this._caps, this._specs, this._cid];
68
68
  await executeHooksWithArgs('beforeSession', this._config.beforeSession, beforeSessionParams);
69
69
  this._reporter = new BaseReporter(this._config, this._cid, { ...caps });
70
70
  await this._reporter.initReporters();
71
71
  /**
72
- * initialise framework
72
+ * initialize framework
73
73
  */
74
74
  this._framework = await this.#initFramework(cid, this._config, caps, this._reporter, specs);
75
75
  process.send({ name: 'testFrameworkInit', content: { cid, caps, specs, hasTests: this._framework.hasTests() } });
@@ -164,10 +164,10 @@ export default class Runner extends EventEmitter {
164
164
  async #initFramework(cid, config, capabilities, reporter, specs) {
165
165
  const runner = Array.isArray(config.runner) ? config.runner[0] : config.runner;
166
166
  /**
167
- * initialise framework adapter when running remote browser tests
167
+ * initialize framework adapter when running remote browser tests
168
168
  */
169
169
  if (runner === 'local') {
170
- const framework = (await initialisePlugin(config.framework, 'framework')).default;
170
+ const framework = (await initializePlugin(config.framework, 'framework')).default;
171
171
  return framework.init(cid, config, specs, capabilities, reporter);
172
172
  }
173
173
  /**
@@ -221,7 +221,7 @@ export default class Runner extends EventEmitter {
221
221
  */
222
222
  const customStubCommands = this._browser?.customCommands || [];
223
223
  const overwrittenCommands = this._browser?.overwrittenCommands || [];
224
- this._browser = await initialiseInstance(config, caps, this._isMultiremote);
224
+ this._browser = await initializeInstance(config, caps, this._isMultiremote);
225
225
  _setGlobal('browser', this._browser, config.injectGlobals);
226
226
  _setGlobal('driver', this._browser, config.injectGlobals);
227
227
  /**
@@ -34,7 +34,7 @@ export default class BaseReporter {
34
34
  */
35
35
  waitForSync(): Promise<unknown>;
36
36
  /**
37
- * initialise reporters
37
+ * initialize reporters
38
38
  */
39
39
  private _loadReporter;
40
40
  }
package/build/reporter.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from 'node:path';
2
2
  import logger from '@wdio/logger';
3
- import { initialisePlugin } from '@wdio/utils';
3
+ import { initializePlugin } from '@wdio/utils';
4
4
  const log = logger('@wdio/runner');
5
5
  const mochaAllHooks = ['"before all" hook', '"after all" hook'];
6
6
  /**
@@ -123,7 +123,7 @@ export default class BaseReporter {
123
123
  });
124
124
  }
125
125
  /**
126
- * initialise reporters
126
+ * initialize reporters
127
127
  */
128
128
  async _loadReporter(reporter) {
129
129
  let ReporterClass;
@@ -175,7 +175,7 @@ export default class BaseReporter {
175
175
  * ```
176
176
  */
177
177
  if (typeof reporter === 'string') {
178
- ReporterClass = (await initialisePlugin(reporter, 'reporter')).default;
178
+ ReporterClass = (await initializePlugin(reporter, 'reporter')).default;
179
179
  options.logFile = options.setLogFile
180
180
  ? options.setLogFile(this._cid, reporter)
181
181
  : typeof options.logFile === 'string'
package/build/utils.d.ts CHANGED
@@ -10,13 +10,13 @@ export interface ConfigWithSessionId extends Omit<Options.Testrunner, 'capabilit
10
10
  */
11
11
  export declare function sanitizeCaps(caps: Capabilities.RemoteCapability, filterOut?: boolean): Omit<Capabilities.RemoteCapability, 'logLevel'>;
12
12
  /**
13
- * initialise browser instance depending whether remote or multiremote is requested
13
+ * initialize browser instance depending whether remote or multiremote is requested
14
14
  * @param {Object} config configuration of sessions
15
15
  * @param {Object} capabilities desired session capabilities
16
16
  * @param {boolean} isMultiremote isMultiremote
17
17
  * @return {Promise} resolves with browser object
18
18
  */
19
- export declare function initialiseInstance(config: ConfigWithSessionId, capabilities: Capabilities.RemoteCapability, isMultiremote?: boolean): Promise<WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser>;
19
+ export declare function initializeInstance(config: ConfigWithSessionId, capabilities: Capabilities.RemoteCapability, isMultiremote?: boolean): Promise<WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser>;
20
20
  /**
21
21
  * Filter logTypes based on filter
22
22
  * @param {string[]} excludeDriverLogs logTypes filter
package/build/utils.js CHANGED
@@ -27,13 +27,13 @@ export function sanitizeCaps(caps, filterOut) {
27
27
  }, {});
28
28
  }
29
29
  /**
30
- * initialise browser instance depending whether remote or multiremote is requested
30
+ * initialize browser instance depending whether remote or multiremote is requested
31
31
  * @param {Object} config configuration of sessions
32
32
  * @param {Object} capabilities desired session capabilities
33
33
  * @param {boolean} isMultiremote isMultiremote
34
34
  * @return {Promise} resolves with browser object
35
35
  */
36
- export async function initialiseInstance(config, capabilities, isMultiremote) {
36
+ export async function initializeInstance(config, capabilities, isMultiremote) {
37
37
  /**
38
38
  * Store all log events in a file
39
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "8.23.0",
3
+ "version": "8.23.2",
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.23.0",
34
- "@wdio/globals": "8.23.0",
33
+ "@wdio/config": "8.23.1",
34
+ "@wdio/globals": "8.23.2",
35
35
  "@wdio/logger": "8.16.17",
36
- "@wdio/types": "8.23.0",
37
- "@wdio/utils": "8.23.0",
36
+ "@wdio/types": "8.23.1",
37
+ "@wdio/utils": "8.23.1",
38
38
  "deepmerge-ts": "^5.0.0",
39
39
  "expect-webdriverio": "^4.5.1",
40
40
  "gaze": "^1.1.2",
41
- "webdriver": "8.23.0",
42
- "webdriverio": "8.23.0"
41
+ "webdriver": "8.23.1",
42
+ "webdriverio": "8.23.2"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "b17ce5f554deb8588cc156ad9676bd4bd13defe7"
47
+ "gitHead": "b0f0086ea01f3028228d449cef7b5dcdd853f08c"
48
48
  }