@wdio/cucumber-framework 6.10.6 → 6.11.1

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/README.md CHANGED
@@ -52,7 +52,7 @@ Require modules prior to requiring any support files.
52
52
 
53
53
  Type: `String[]`<br>
54
54
  Default: `[]`<br>
55
- Example: `['@babel/register']` or `[['@babel/register', { rootMode: 'upward', ignore: ['node_modules'] }]] or [() => { require('ts-node').register({ files: true }) }]`
55
+ Example: `['@babel/register']` or `[['@babel/register', { rootMode: 'upward', ignore: ['node_modules'] }]]`
56
56
 
57
57
  ### failAmbiguousDefinitions
58
58
  **Please note that this is a @wdio/cucumber-framework specific option and not recognized by cucumber-js itself**
package/build/index.js CHANGED
@@ -75,7 +75,7 @@ class CucumberAdapter {
75
75
  this._hasTests = this.testCases.length > 0;
76
76
  }
77
77
  catch (runtimeError) {
78
- await utils_1.executeHooksWithArgs(this.config.after, [runtimeError, this.capabilities, this.specs]);
78
+ await utils_1.executeHooksWithArgs('after', this.config.after, [runtimeError, this.capabilities, this.specs]);
79
79
  throw runtimeError;
80
80
  }
81
81
  const { setOptions } = require('expect-webdriverio');
@@ -119,7 +119,7 @@ class CucumberAdapter {
119
119
  runtimeError = e;
120
120
  result = 1;
121
121
  }
122
- await utils_1.executeHooksWithArgs(this.config.after, [runtimeError || result, this.capabilities, this.specs]);
122
+ await utils_1.executeHooksWithArgs('after', this.config.after, [runtimeError || result, this.capabilities, this.specs]);
123
123
  if (runtimeError) {
124
124
  throw runtimeError;
125
125
  }
@@ -186,19 +186,19 @@ class CucumberAdapter {
186
186
  addWdioHooks(config) {
187
187
  Cucumber.Before(function wdioHookBeforeScenario(world) {
188
188
  const { uri, feature } = utils_2.getDataFromResult(global.result);
189
- return utils_1.executeHooksWithArgs(config.beforeScenario, [uri, feature, world.pickle, world.sourceLocation, world]);
189
+ return utils_1.executeHooksWithArgs('beforeScenario', config.beforeScenario, [uri, feature, world.pickle, world.sourceLocation, world]);
190
190
  });
191
191
  Cucumber.After(function wdioHookAfterScenario(world) {
192
192
  const { uri, feature } = utils_2.getDataFromResult(global.result);
193
- return utils_1.executeHooksWithArgs(config.afterScenario, [uri, feature, world.pickle, world.result, world.sourceLocation, world]);
193
+ return utils_1.executeHooksWithArgs('afterScenario', config.afterScenario, [uri, feature, world.pickle, world.result, world.sourceLocation, world]);
194
194
  });
195
195
  Cucumber.BeforeAll(function wdioHookBeforeFeature() {
196
196
  const { uri, feature, scenarios } = utils_2.getDataFromResult(global.result);
197
- return utils_1.executeHooksWithArgs(config.beforeFeature, [uri, feature, scenarios]);
197
+ return utils_1.executeHooksWithArgs('beforeFeature', config.beforeFeature, [uri, feature, scenarios]);
198
198
  });
199
199
  Cucumber.AfterAll(function wdioHookAfterFeature() {
200
200
  const { uri, feature, scenarios } = utils_2.getDataFromResult(global.result);
201
- return utils_1.executeHooksWithArgs(config.afterFeature, [uri, feature, scenarios]);
201
+ return utils_1.executeHooksWithArgs('afterFeature', config.afterFeature, [uri, feature, scenarios]);
202
202
  });
203
203
  }
204
204
  wrapSteps(config) {
@@ -47,7 +47,7 @@ interface CucumberOpts {
47
47
  /**
48
48
  * Require modules prior to requiring any support files.
49
49
  * @default []
50
- * @example `['@babel/register']` or `[['@babel/register', { rootMode: 'upward', ignore: ['node_modules'] }]] or [() => { require('ts-node').register({ files: true }) }]`
50
+ * @example `['@babel/register']` or `[['@babel/register', { rootMode: 'upward', ignore: ['node_modules'] }]]`
51
51
  */
52
52
  requireModule?: string[];
53
53
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cucumber-framework",
3
- "version": "6.10.6",
3
+ "version": "6.11.1",
4
4
  "description": "A WebdriverIO plugin. Adapter for Cucumber.js testing framework.",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-cucumber-framework",
@@ -22,8 +22,8 @@
22
22
  "url": "https://github.com/webdriverio/webdriverio/issues"
23
23
  },
24
24
  "dependencies": {
25
- "@wdio/logger": "6.10.4",
26
- "@wdio/utils": "6.10.6",
25
+ "@wdio/logger": "6.10.10",
26
+ "@wdio/utils": "6.11.0",
27
27
  "cucumber": "^6.0.5",
28
28
  "expect-webdriverio": "^1.1.5",
29
29
  "glob": "^7.1.2",
@@ -40,5 +40,5 @@
40
40
  "access": "public"
41
41
  },
42
42
  "types": "cucumber-framework.d.ts",
43
- "gitHead": "c3fa466d4e0fece382f2d04ead5f19f97eaa71fe"
43
+ "gitHead": "4ef2b9831fb47664aec999c229e0530d939af31a"
44
44
  }