@wdio/runner 9.15.0 → 9.16.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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAExE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA8F;IAC5G,OAAO,CAAC,iBAAiB,CAAC,CAAO;IAEjC;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IA2NpE;;;;;;OAMG;YACW,YAAY;IAoC1B;;;;;OAKG;YACW,aAAa;IAsE3B;;OAEG;YACW,SAAS;IAoCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAwEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAExE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA8F;IAC5G,OAAO,CAAC,iBAAiB,CAAC,CAAO;IAEjC;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IA+NpE;;;;;;OAMG;YACW,YAAY;IAoC1B;;;;;OAKG;YACW,aAAa;IAsE3B;;OAEG;YACW,SAAS;IAoCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAwEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
package/build/index.js CHANGED
@@ -4,7 +4,7 @@ import logger4 from "@wdio/logger";
4
4
  import { initializeWorkerService, initializePlugin as initializePlugin2, executeHooksWithArgs as executeHooksWithArgs2 } from "@wdio/utils";
5
5
  import { ConfigParser } from "@wdio/config/node";
6
6
  import { _setGlobal } from "@wdio/globals";
7
- import { expect as expect2, setOptions, SnapshotService } from "expect-webdriverio";
7
+ import { expect as expect2, setOptions, SnapshotService, SoftAssertionService } from "expect-webdriverio";
8
8
  import { attach as attach2 } from "webdriverio";
9
9
 
10
10
  // src/browser.ts
@@ -660,10 +660,14 @@ var Runner = class extends EventEmitter {
660
660
  }
661
661
  const capabilities = this._configParser.getCapabilities();
662
662
  const isMultiremote = this._isMultiremote = !Array.isArray(capabilities) || Object.values(caps).length > 0 && Object.values(caps).every((c) => typeof c === "object" && c.capabilities);
663
+ const softAssertionService = new SoftAssertionService({
664
+ autoAssertOnTestEnd: this._config.autoAssertOnTestEnd || true
665
+ }, this._caps, this._config);
663
666
  const snapshotService = SnapshotService.initiate({
664
667
  updateState: this._config.updateSnapshots,
665
668
  resolveSnapshotPath: this._config.resolveSnapshotPath
666
669
  });
670
+ this._configParser.addService(softAssertionService);
667
671
  this._configParser.addService(snapshotService);
668
672
  this._caps = this._isMultiremote ? Object.entries(caps).reduce((filteredCaps, [browserName, browserCaps]) => {
669
673
  const ex = browserCaps.capabilities["wdio:exclude"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "9.15.0",
3
+ "version": "9.16.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",
@@ -32,19 +32,30 @@
32
32
  "typeScriptVersion": "3.8.3",
33
33
  "dependencies": {
34
34
  "@types/node": "^20.11.28",
35
- "@wdio/config": "9.15.0",
36
- "@wdio/dot-reporter": "9.15.0",
37
- "@wdio/globals": "9.15.0",
35
+ "@wdio/config": "9.16.0",
36
+ "@wdio/dot-reporter": "9.16.0",
37
+ "@wdio/globals": "9.16.0",
38
38
  "@wdio/logger": "9.15.0",
39
- "@wdio/types": "9.15.0",
40
- "@wdio/utils": "9.15.0",
39
+ "@wdio/types": "9.16.0",
40
+ "@wdio/utils": "9.16.0",
41
41
  "deepmerge-ts": "^7.0.3",
42
- "expect-webdriverio": "^5.1.0",
43
- "webdriver": "9.15.0",
44
- "webdriverio": "9.15.0"
42
+ "webdriver": "9.16.0",
43
+ "webdriverio": "9.16.0"
44
+ },
45
+ "peerDependencies": {
46
+ "expect-webdriverio": "^5.3.2",
47
+ "webdriverio": "workspace:*"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "expect-webdriverio": {
51
+ "optional": false
52
+ },
53
+ "webdriverio": {
54
+ "optional": false
55
+ }
45
56
  },
46
57
  "publishConfig": {
47
58
  "access": "public"
48
59
  },
49
- "gitHead": "0161f7203a99a181ee945286b676b37e032763fe"
60
+ "gitHead": "a4539d01aeee8ab9580a99321a235088d69bd17a"
50
61
  }