@wdio/cucumber-framework 8.0.0-alpha.328 → 8.0.0-alpha.331
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/cjs/index.d.ts +21 -0
- package/build/cjs/index.d.ts.map +1 -0
- package/build/cjs/index.js +28 -0
- package/build/cjs/package.json +3 -0
- package/package.json +16 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const After: any, AfterAll: any, AfterStep: any, Before: any, BeforeAll: any, BeforeStep: any, DataTable: any, defineParameterType: any, defineStep: any, Given: any, setDefaultTimeout: any, setDefinitionFunctionWrapper: any, setWorldConstructor: any, World: any, Then: any, When: any;
|
|
2
|
+
declare const adapterFactory: {
|
|
3
|
+
init: (...args: any[]) => Promise<import("../index.js").CucumberAdapter>;
|
|
4
|
+
After: any;
|
|
5
|
+
AfterAll: any;
|
|
6
|
+
AfterStep: any;
|
|
7
|
+
Before: any;
|
|
8
|
+
BeforeAll: any;
|
|
9
|
+
BeforeStep: any;
|
|
10
|
+
DataTable: any;
|
|
11
|
+
defineParameterType: any;
|
|
12
|
+
defineStep: any;
|
|
13
|
+
Given: any;
|
|
14
|
+
setDefaultTimeout: any;
|
|
15
|
+
setDefinitionFunctionWrapper: any;
|
|
16
|
+
setWorldConstructor: any;
|
|
17
|
+
World: any;
|
|
18
|
+
Then: any;
|
|
19
|
+
When: any;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":"AAAA,QAAA,MACI,KAAK,OACL,QAAQ,OACR,SAAS,OACT,MAAM,OACN,SAAS,OACT,UAAU,OACV,SAAS,OACT,mBAAmB,OACnB,UAAU,OACV,KAAK,OACL,iBAAiB,OACjB,4BAA4B,OAC5B,mBAAmB,OACnB,KAAK,OACL,IAAI,OACJ,IAAI,KACyB,CAAA;AAEjC,QAAA,MAAM,cAAc;oBACqC,GAAG,EAAE;;;;;;;;;;;;;;;;;CAuB7D,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const { After, AfterAll, AfterStep, Before, BeforeAll, BeforeStep, DataTable, defineParameterType, defineStep, Given, setDefaultTimeout, setDefinitionFunctionWrapper, setWorldConstructor, World, Then, When } = require('@cucumber/cucumber');
|
|
3
|
+
const adapterFactory = {
|
|
4
|
+
init: async function initCucumberFramework(...args) {
|
|
5
|
+
const { CucumberAdapter } = await import('../index.js');
|
|
6
|
+
// @ts-ignore just passing through args
|
|
7
|
+
const adapter = new CucumberAdapter(...args);
|
|
8
|
+
const instance = await adapter.init();
|
|
9
|
+
return instance;
|
|
10
|
+
},
|
|
11
|
+
After: After,
|
|
12
|
+
AfterAll: AfterAll,
|
|
13
|
+
AfterStep: AfterStep,
|
|
14
|
+
Before: Before,
|
|
15
|
+
BeforeAll: BeforeAll,
|
|
16
|
+
BeforeStep: BeforeStep,
|
|
17
|
+
DataTable: DataTable,
|
|
18
|
+
defineParameterType: defineParameterType,
|
|
19
|
+
defineStep: defineStep,
|
|
20
|
+
Given: Given,
|
|
21
|
+
setDefaultTimeout: setDefaultTimeout,
|
|
22
|
+
setDefinitionFunctionWrapper: setDefinitionFunctionWrapper,
|
|
23
|
+
setWorldConstructor: setWorldConstructor,
|
|
24
|
+
World: World,
|
|
25
|
+
Then: Then,
|
|
26
|
+
When: When,
|
|
27
|
+
};
|
|
28
|
+
module.exports = adapterFactory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cucumber-framework",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.331+78ec9a352",
|
|
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",
|
|
@@ -21,8 +21,18 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
23
23
|
},
|
|
24
|
+
"main": "./build/cjs/index.js",
|
|
24
25
|
"type": "module",
|
|
25
|
-
"
|
|
26
|
+
"module": "./build/index.js",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": [
|
|
29
|
+
{
|
|
30
|
+
"import": "./build/index.js",
|
|
31
|
+
"require": "./build/cjs/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./build/cjs/index.js"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
26
36
|
"types": "./build/index.d.ts",
|
|
27
37
|
"typeScriptVersion": "3.8.3",
|
|
28
38
|
"dependencies": {
|
|
@@ -32,9 +42,9 @@
|
|
|
32
42
|
"@cucumber/messages": "19.1.2",
|
|
33
43
|
"@types/is-glob": "^4.0.1",
|
|
34
44
|
"@types/mockery": "^1.4.29",
|
|
35
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
36
|
-
"@wdio/types": "8.0.0-alpha.
|
|
37
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
45
|
+
"@wdio/logger": "8.0.0-alpha.331+78ec9a352",
|
|
46
|
+
"@wdio/types": "8.0.0-alpha.331+78ec9a352",
|
|
47
|
+
"@wdio/utils": "8.0.0-alpha.331+78ec9a352",
|
|
38
48
|
"glob": "^8.0.3",
|
|
39
49
|
"is-glob": "^4.0.0",
|
|
40
50
|
"long": "^4.0.0",
|
|
@@ -46,5 +56,5 @@
|
|
|
46
56
|
"publishConfig": {
|
|
47
57
|
"access": "public"
|
|
48
58
|
},
|
|
49
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "78ec9a35262f7d5ff4001cf777553f0a3c173d6d"
|
|
50
60
|
}
|