@wdio/reporter 8.23.0 → 8.24.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
@@ -45,6 +45,8 @@ export default class WDIOReporter extends EventEmitter {
45
45
  onRunnerStart(runnerStats: RunnerStats): void;
46
46
  onBeforeCommand(commandArgs: BeforeCommandArgs): void;
47
47
  onAfterCommand(commandArgs: AfterCommandArgs): void;
48
+ onBeforeAssertion(assertionArgs: unknown): void;
49
+ onAfterAssertion(assertionArgs: unknown): void;
48
50
  onSuiteStart(suiteStats: SuiteStats): void;
49
51
  onHookStart(hookStat: HookStats): void;
50
52
  onHookEnd(hookStats: HookStats): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAIrD,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAEzC,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEjG,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAA;CAAE,CAAA;AAE7D,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAqB/B,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC;IApBtD,YAAY,EAAE,WAAW,GAAG,iBAAiB,CAAA;IAC7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;;;OAGG;IACH,IAAI,cAAc,YAEjB;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,GAAG;IASlB,aAAa,CAAC,WAAW,EAAE,WAAW;IAGtC,eAAe,CAAC,WAAW,EAAE,iBAAiB;IAG9C,cAAc,CAAC,WAAW,EAAE,gBAAgB;IAG5C,iBAAiB,CAAC,aAAa,EAAE,OAAO;IAGxC,gBAAgB,CAAC,aAAa,EAAE,OAAO;IAGvC,YAAY,CAAC,UAAU,EAAE,UAAU;IAGnC,WAAW,CAAC,QAAQ,EAAE,SAAS;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS;IAG9B,WAAW,CAAC,SAAS,EAAE,SAAS;IAGhC,UAAU,CAAC,SAAS,EAAE,SAAS;IAG/B,UAAU,CAAC,SAAS,EAAE,SAAS;IAG/B,WAAW,CAAC,SAAS,EAAE,SAAS;IAGhC,UAAU,CAAC,SAAS,EAAE,SAAS;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS;IAG9B,UAAU,CAAC,UAAU,EAAE,UAAU;IAGjC,WAAW,CAAC,WAAW,EAAE,WAAW;CACvC;AAED,OAAO,EACH,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EACrE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAChD,CAAA"}
package/build/index.js CHANGED
@@ -50,6 +50,8 @@ export default class WDIOReporter extends EventEmitter {
50
50
  this.currentSuites.push(rootSuite);
51
51
  this.on('client:beforeCommand', this.onBeforeCommand.bind(this));
52
52
  this.on('client:afterCommand', this.onAfterCommand.bind(this));
53
+ this.on('client:beforeAssertion', this.onBeforeAssertion.bind(this));
54
+ this.on('client:afterAssertion', this.onAfterAssertion.bind(this));
53
55
  this.on('runner:start', /* istanbul ignore next */ (runner) => {
54
56
  rootSuite.cid = runner.cid;
55
57
  this.specs.push(...runner.specs);
@@ -218,6 +220,12 @@ export default class WDIOReporter extends EventEmitter {
218
220
  onAfterCommand(commandArgs) { }
219
221
  /* istanbul ignore next */
220
222
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
223
+ onBeforeAssertion(assertionArgs) { }
224
+ /* istanbul ignore next */
225
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
226
+ onAfterAssertion(assertionArgs) { }
227
+ /* istanbul ignore next */
228
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
221
229
  onSuiteStart(suiteStats) { }
222
230
  /* istanbul ignore next */
223
231
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
package/cjs/index.js CHANGED
@@ -60,6 +60,8 @@ class WDIOReporter extends node_events_1.EventEmitter {
60
60
  this.currentSuites.push(rootSuite);
61
61
  this.on('client:beforeCommand', this.onBeforeCommand.bind(this));
62
62
  this.on('client:afterCommand', this.onAfterCommand.bind(this));
63
+ this.on('client:beforeAssertion', this.onBeforeAssertion.bind(this));
64
+ this.on('client:afterAssertion', this.onAfterAssertion.bind(this));
63
65
  this.on('runner:start', /* istanbul ignore next */ (runner) => {
64
66
  rootSuite.cid = runner.cid;
65
67
  this.specs.push(...runner.specs);
@@ -228,6 +230,12 @@ class WDIOReporter extends node_events_1.EventEmitter {
228
230
  onAfterCommand(commandArgs) { }
229
231
  /* istanbul ignore next */
230
232
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
233
+ onBeforeAssertion(assertionArgs) { }
234
+ /* istanbul ignore next */
235
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
236
+ onAfterAssertion(assertionArgs) { }
237
+ /* istanbul ignore next */
238
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
231
239
  onSuiteStart(suiteStats) { }
232
240
  /* istanbul ignore next */
233
241
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/reporter",
3
- "version": "8.23.0",
3
+ "version": "8.24.0",
4
4
  "description": "A WebdriverIO utility to help reporting all events",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@types/node": "^20.1.0",
45
45
  "@wdio/logger": "8.16.17",
46
- "@wdio/types": "8.23.0",
46
+ "@wdio/types": "8.24.0",
47
47
  "diff": "^5.0.0",
48
48
  "object-inspect": "^1.12.0"
49
49
  },
@@ -54,5 +54,5 @@
54
54
  "@types/tmp": "^0.2.3",
55
55
  "tmp": "^0.2.1"
56
56
  },
57
- "gitHead": "b17ce5f554deb8588cc156ad9676bd4bd13defe7"
57
+ "gitHead": "5fe7908a837461102ada6edf71c160f2c66dd88f"
58
58
  }