@wdio/cucumber-framework 8.0.0-alpha.213 → 8.0.0-alpha.240

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
@@ -1,11 +1,9 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="expect-webdriverio/types/standalone" />
3
2
  import { EventEmitter } from 'node:events';
4
3
  import * as Cucumber from '@cucumber/cucumber';
5
4
  import { After, AfterAll, AfterStep, Before, BeforeAll, BeforeStep, DataTable, defineParameterType, defineStep, Given, setDefaultTimeout, setDefinitionFunctionWrapper, setWorldConstructor, World, Then, When } from '@cucumber/cucumber';
6
5
  import { Long } from 'long';
7
6
  import type { Capabilities, Options } from '@wdio/types';
8
- import type ExpectWebdriverIO from 'expect-webdriverio';
9
7
  import type { CucumberOptions, StepDefinitionOptions, HookFunctionExtension as HookFunctionExtensionImport } from './types';
10
8
  declare class CucumberAdapter {
11
9
  private _cid;
@@ -78,10 +76,5 @@ declare global {
78
76
  interface HookFunctionExtension extends HookFunctionExtensionImport {
79
77
  }
80
78
  }
81
- namespace NodeJS {
82
- interface Global {
83
- expect: ExpectWebdriverIO.Expect;
84
- }
85
- }
86
79
  }
87
80
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EACH,KAAK,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,SAAS,EACT,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,KAAK,EACL,IAAI,EACJ,IAAI,EACP,MAAM,oBAAoB,CAAA;AAI3B,OAAO,EAAE,IAAI,EAAE,MAAM,MA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,QAAA,MAAM,cAAc,EAAE;IAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAO,CAAA;AAa9C,eAAe,cAAc,CAAA;AAC7B,OAAO,EACH,eAAe,EACf,cAAc,EACd,KAAK,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,SAAS,EACT,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,IAAI,EACJ,IAAI,EACJ,KAAK,EACR,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,YAAa,SAAQ,eAAe;SAAG;QACjD,UAAU,qBAAsB,SAAQ,2BAA2B;SAAG;KACzE;CACJ"}
package/build/index.js CHANGED
@@ -9,7 +9,6 @@ import { After, AfterAll, AfterStep, Before, BeforeAll, BeforeStep, DataTable, d
9
9
  import { GherkinStreams } from '@cucumber/gherkin-streams';
10
10
  import { IdGenerator } from '@cucumber/messages';
11
11
  import { executeHooksWithArgs, testFnWrapper } from '@wdio/utils';
12
- import { setOptions } from 'expect-webdriverio';
13
12
  import CucumberReporter from './reporter.js';
14
13
  import { DEFAULT_OPTS } from './constants.js';
15
14
  import { setUserHookNames } from './utils.js';
@@ -79,14 +78,6 @@ class CucumberAdapter {
79
78
  await executeHooksWithArgs('after', this._config.after, [runtimeError, this._capabilities, this._specs]);
80
79
  throw runtimeError;
81
80
  }
82
- /**
83
- * import and set options for `expect-webdriverio` assertion lib once
84
- * the framework was initiated so that it can detect the environment
85
- */
86
- setOptions({
87
- wait: this._config.waitforTimeout,
88
- interval: this._config.waitforInterval, // interval between attempts
89
- });
90
81
  return this;
91
82
  }
92
83
  hasTests() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cucumber-framework",
3
- "version": "8.0.0-alpha.213+c5fb6d57e",
3
+ "version": "8.0.0-alpha.240+c00506f0e",
4
4
  "description": "A WebdriverIO plugin. Adapter for Cucumber.js testing framework.",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cucumber-framework",
@@ -32,20 +32,19 @@
32
32
  "@types/is-glob": "^4.0.1",
33
33
  "@types/long": "^4.0.1",
34
34
  "@types/mockery": "^1.4.29",
35
- "@wdio/logger": "8.0.0-alpha.213+c5fb6d57e",
36
- "@wdio/types": "8.0.0-alpha.213+c5fb6d57e",
37
- "@wdio/utils": "8.0.0-alpha.213+c5fb6d57e",
38
- "expect-webdriverio": "^3.0.0",
35
+ "@wdio/logger": "8.0.0-alpha.240+c00506f0e",
36
+ "@wdio/types": "8.0.0-alpha.240+c00506f0e",
37
+ "@wdio/utils": "8.0.0-alpha.240+c00506f0e",
39
38
  "glob": "^8.0.3",
40
39
  "is-glob": "^4.0.0",
41
40
  "long": "^4.0.0",
42
41
  "mockery": "^2.1.0"
43
42
  },
44
43
  "peerDependencies": {
45
- "@wdio/cli": "^7.0.0"
44
+ "@wdio/cli": "next"
46
45
  },
47
46
  "publishConfig": {
48
47
  "access": "public"
49
48
  },
50
- "gitHead": "c5fb6d57e168d8bf939a5aa5c2ada5abaceec5eb"
49
+ "gitHead": "c00506f0e49a88808f992ae2199b02bc6d7deff0"
51
50
  }