@wdio/allure-reporter 8.8.6 → 8.8.7

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.
@@ -208,7 +208,8 @@ export function addArgument(name, value) {
208
208
  */
209
209
  export async function step(name, body) {
210
210
  const runningStep = new AllureCommandStepExecutable(name);
211
- const result = await runningStep.start(body);
211
+ // looks complicated due to https://github.com/allure-framework/allure-js/commit/ce9a6f986d32a079b7f60c9f77a7d90f01d9a9f2#r110599261
212
+ const result = await new Promise((resolve) => runningStep.run(body, async (result) => resolve(result)));
212
213
  tellReporter(events.addAllureStep, result);
213
214
  }
214
215
  export default {
package/cjs/common/api.js CHANGED
@@ -232,7 +232,8 @@ exports.addArgument = addArgument;
232
232
  */
233
233
  async function step(name, body) {
234
234
  const runningStep = new allure_js_commons_1.AllureCommandStepExecutable(name);
235
- const result = await runningStep.start(body);
235
+ // looks complicated due to https://github.com/allure-framework/allure-js/commit/ce9a6f986d32a079b7f60c9f77a7d90f01d9a9f2#r110599261
236
+ const result = await new Promise((resolve) => runningStep.run(body, async (result) => resolve(result)));
236
237
  tellReporter(constants_js_1.events.addAllureStep, result);
237
238
  }
238
239
  exports.step = step;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/allure-reporter",
3
- "version": "8.8.6",
3
+ "version": "8.8.7",
4
4
  "description": "A WebdriverIO reporter plugin to create Allure Test Reports",
5
5
  "author": "Boris Osipov <osipov.boris@gmail.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-allure-reporter",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@types/node": "^18.0.0",
43
- "@wdio/reporter": "8.8.6",
44
- "@wdio/types": "8.8.6",
43
+ "@wdio/reporter": "8.8.7",
44
+ "@wdio/types": "8.8.7",
45
45
  "allure-js-commons": "^2.0.0",
46
46
  "csv-stringify": "^6.0.4",
47
47
  "strip-ansi": "^6.0.0"
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "0db3b2f595ef834e6e01f58873dbde776dc08240"
52
+ "gitHead": "c8f7c7298308b5d313d88a16fdd58f241fdeec52"
53
53
  }