@lynxwall/cucumber-tsflow 5.1.2 → 6.0.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/README.md +544 -544
- package/bin/cucumber-tsflow +1 -1
- package/lib/behave.d.ts +1 -1
- package/lib/behave.js +27 -27
- package/lib/cli/argv-parser.d.ts +24 -24
- package/lib/cli/argv-parser.js +103 -103
- package/lib/cli/index.d.ts +22 -22
- package/lib/cli/index.js +101 -96
- package/lib/cli/load-configuration.d.ts +20 -20
- package/lib/cli/load-configuration.js +92 -92
- package/lib/cli/run.d.ts +1 -1
- package/lib/cli/run.js +49 -44
- package/lib/cucumber/binding-decorator.d.ts +10 -10
- package/lib/cucumber/binding-decorator.js +180 -180
- package/lib/cucumber/binding-registry.d.ts +82 -82
- package/lib/cucumber/binding-registry.js +216 -218
- package/lib/cucumber/hook-decorators.d.ts +46 -46
- package/lib/cucumber/hook-decorators.js +102 -102
- package/lib/cucumber/managed-scenario-context.d.ts +21 -21
- package/lib/cucumber/managed-scenario-context.js +96 -95
- package/lib/cucumber/message-collector.d.ts +81 -80
- package/lib/cucumber/message-collector.js +251 -241
- package/lib/cucumber/parallel/coordinator.d.ts +79 -78
- package/lib/cucumber/parallel/coordinator.js +247 -228
- package/lib/cucumber/parallel/run-worker.d.ts +1 -1
- package/lib/cucumber/parallel/run-worker.js +31 -31
- package/lib/cucumber/parallel/worker.d.ts +30 -31
- package/lib/cucumber/parallel/worker.js +104 -104
- package/lib/cucumber/run-cucumber.d.ts +14 -14
- package/lib/cucumber/run-cucumber.js +117 -117
- package/lib/cucumber/runtime.d.ts +25 -25
- package/lib/cucumber/runtime.js +39 -39
- package/lib/cucumber/step-definition-decorators.d.ts +24 -24
- package/lib/cucumber/step-definition-decorators.js +91 -91
- package/lib/cucumber/utils.d.ts +16 -16
- package/lib/cucumber/utils.js +77 -77
- package/lib/esnode.js +19 -19
- package/lib/esvue.d.ts +1 -1
- package/lib/esvue.js +41 -41
- package/lib/formatters/behave-json-formatter.d.ts +49 -49
- package/lib/formatters/behave-json-formatter.js +75 -75
- package/lib/formatters/tsflow-snippet-syntax.d.ts +9 -9
- package/lib/formatters/tsflow-snippet-syntax.js +90 -93
- package/lib/gherkin/configuration.d.ts +30 -30
- package/lib/gherkin/configuration.js +26 -26
- package/lib/gherkin/gherkin-feature.d.ts +28 -28
- package/lib/gherkin/gherkin-feature.js +333 -335
- package/lib/gherkin/gherkin-manager.d.ts +29 -29
- package/lib/gherkin/gherkin-manager.js +114 -113
- package/lib/gherkin/models.d.ts +45 -45
- package/lib/gherkin/models.js +2 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +22 -22
- package/lib/snippet.d.ts +1 -1
- package/lib/snippet.js +27 -27
- package/lib/transpilers/esbuild-transpiler.d.ts +4 -4
- package/lib/transpilers/esbuild-transpiler.js +19 -21
- package/lib/transpilers/esbuild.d.ts +12 -12
- package/lib/transpilers/esbuild.js +54 -54
- package/lib/transpilers/vue-sfc/compiler.d.ts +7 -7
- package/lib/transpilers/vue-sfc/compiler.js +21 -21
- package/lib/transpilers/vue-sfc/index.d.ts +23 -23
- package/lib/transpilers/vue-sfc/index.js +47 -45
- package/lib/transpilers/vue-sfc/main.d.ts +8 -8
- package/lib/transpilers/vue-sfc/main.js +248 -248
- package/lib/transpilers/vue-sfc/script.d.ts +5 -5
- package/lib/transpilers/vue-sfc/script.js +41 -41
- package/lib/transpilers/vue-sfc/template.d.ts +8 -8
- package/lib/transpilers/vue-sfc/template.js +102 -102
- package/lib/transpilers/vue-sfc/types.d.ts +55 -55
- package/lib/transpilers/vue-sfc/types.js +2 -2
- package/lib/transpilers/vue-sfc/utils/descriptorCache.d.ts +13 -13
- package/lib/transpilers/vue-sfc/utils/descriptorCache.js +67 -67
- package/lib/transpilers/vue-sfc/utils/error.d.ts +3 -3
- package/lib/transpilers/vue-sfc/utils/error.js +22 -22
- package/lib/transpilers/vue-sfc/utils/query.d.ts +13 -13
- package/lib/transpilers/vue-sfc/utils/query.js +35 -35
- package/lib/tsnode.js +17 -17
- package/lib/tsvue.d.ts +1 -1
- package/lib/tsvue.js +39 -39
- package/lib/types/scenario-context.d.ts +16 -16
- package/lib/types/scenario-context.js +17 -17
- package/lib/types/scenario-info.d.ts +16 -16
- package/lib/types/scenario-info.js +23 -21
- package/lib/types/step-binding-flags.d.ts +53 -53
- package/lib/types/step-binding-flags.js +58 -58
- package/lib/types/step-binding.d.ts +50 -50
- package/lib/types/step-binding.js +17 -17
- package/lib/types/types.d.ts +21 -21
- package/lib/types/types.js +2 -2
- package/lib/utils/helpers.d.ts +6 -6
- package/lib/utils/helpers.js +17 -17
- package/lib/utils/logger.d.ts +3 -3
- package/lib/utils/logger.js +29 -29
- package/lib/utils/our-callsite.d.ts +27 -27
- package/lib/utils/our-callsite.js +73 -71
- package/lib/version.d.ts +1 -1
- package/lib/version.js +5 -5
- package/package.json +57 -58
package/lib/cucumber/runtime.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.makeRuntime = void 0;
|
|
7
|
-
const index_1 = __importDefault(require("@cucumber/cucumber/lib/runtime/index"));
|
|
8
|
-
const coordinator_1 = __importDefault(require("./parallel/coordinator"));
|
|
9
|
-
/**
|
|
10
|
-
* Extending this function from cucumber.js to use our own implementation
|
|
11
|
-
* of the Coordinator.
|
|
12
|
-
*/
|
|
13
|
-
function makeRuntime({ cwd, logger, eventBroadcaster, eventDataCollector, pickleIds, newId, supportCodeLibrary, requireModules, requirePaths, importPaths, options: { parallel, ...options } }) {
|
|
14
|
-
if (parallel > 0) {
|
|
15
|
-
return new coordinator_1.default({
|
|
16
|
-
cwd,
|
|
17
|
-
logger,
|
|
18
|
-
eventBroadcaster,
|
|
19
|
-
eventDataCollector,
|
|
20
|
-
pickleIds,
|
|
21
|
-
options,
|
|
22
|
-
newId,
|
|
23
|
-
supportCodeLibrary,
|
|
24
|
-
requireModules,
|
|
25
|
-
requirePaths,
|
|
26
|
-
importPaths,
|
|
27
|
-
numberOfWorkers: parallel
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return new index_1.default({
|
|
31
|
-
eventBroadcaster,
|
|
32
|
-
eventDataCollector,
|
|
33
|
-
newId,
|
|
34
|
-
pickleIds,
|
|
35
|
-
supportCodeLibrary,
|
|
36
|
-
options
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
exports.makeRuntime = makeRuntime;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.makeRuntime = void 0;
|
|
7
|
+
const index_1 = __importDefault(require("@cucumber/cucumber/lib/runtime/index"));
|
|
8
|
+
const coordinator_1 = __importDefault(require("./parallel/coordinator"));
|
|
9
|
+
/**
|
|
10
|
+
* Extending this function from cucumber.js to use our own implementation
|
|
11
|
+
* of the Coordinator.
|
|
12
|
+
*/
|
|
13
|
+
function makeRuntime({ cwd, logger, eventBroadcaster, eventDataCollector, pickleIds, newId, supportCodeLibrary, requireModules, requirePaths, importPaths, options: { parallel, ...options } }) {
|
|
14
|
+
if (parallel > 0) {
|
|
15
|
+
return new coordinator_1.default({
|
|
16
|
+
cwd,
|
|
17
|
+
logger,
|
|
18
|
+
eventBroadcaster,
|
|
19
|
+
eventDataCollector,
|
|
20
|
+
pickleIds,
|
|
21
|
+
options,
|
|
22
|
+
newId,
|
|
23
|
+
supportCodeLibrary,
|
|
24
|
+
requireModules,
|
|
25
|
+
requirePaths,
|
|
26
|
+
importPaths,
|
|
27
|
+
numberOfWorkers: parallel
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return new index_1.default({
|
|
31
|
+
eventBroadcaster,
|
|
32
|
+
eventDataCollector,
|
|
33
|
+
newId,
|
|
34
|
+
pickleIds,
|
|
35
|
+
supportCodeLibrary,
|
|
36
|
+
options
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
exports.makeRuntime = makeRuntime;
|
|
40
40
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jdWN1bWJlci9ydW50aW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLGlGQUF5RTtBQUt6RSx5RUFBaUQ7QUFJakQ7OztHQUdHO0FBQ0gsU0FBZ0IsV0FBVyxDQUFDLEVBQzNCLEdBQUcsRUFDSCxNQUFNLEVBQ04sZ0JBQWdCLEVBQ2hCLGtCQUFrQixFQUNsQixTQUFTLEVBQ1QsS0FBSyxFQUNMLGtCQUFrQixFQUNsQixjQUFjLEVBQ2QsWUFBWSxFQUNaLFdBQVcsRUFDWCxPQUFPLEVBQUUsRUFBRSxRQUFRLEVBQUUsR0FBRyxPQUFPLEVBQUUsRUFhakM7SUFDQSxJQUFJLFFBQVEsR0FBRyxDQUFDLEVBQUU7UUFDakIsT0FBTyxJQUFJLHFCQUFXLENBQUM7WUFDdEIsR0FBRztZQUNILE1BQU07WUFDTixnQkFBZ0I7WUFDaEIsa0JBQWtCO1lBQ2xCLFNBQVM7WUFDVCxPQUFPO1lBQ1AsS0FBSztZQUNMLGtCQUFrQjtZQUNsQixjQUFjO1lBQ2QsWUFBWTtZQUNaLFdBQVc7WUFDWCxlQUFlLEVBQUUsUUFBUTtTQUN6QixDQUFDLENBQUM7S0FDSDtJQUNELE9BQU8sSUFBSSxlQUFPLENBQUM7UUFDbEIsZ0JBQWdCO1FBQ2hCLGtCQUFrQjtRQUNsQixLQUFLO1FBQ0wsU0FBUztRQUNULGtCQUFrQjtRQUNsQixPQUFPO0tBQ1AsQ0FBQyxDQUFDO0FBQ0osQ0FBQztBQWpERCxrQ0FpREMifQ==
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A method decorator that marks the associated function as a 'Given' step.
|
|
3
|
-
*
|
|
4
|
-
* @param stepPattern The regular expression that will be used to match steps.
|
|
5
|
-
* @param tag An optional tag.
|
|
6
|
-
* @param timeout An optional timeout.
|
|
7
|
-
*/
|
|
8
|
-
export declare function given(stepPattern: RegExp | string, tag?: string, timeout?: number, wrapperOption?: any): MethodDecorator;
|
|
9
|
-
/**
|
|
10
|
-
* A method decorator that marks the associated function as a 'When' step.
|
|
11
|
-
*
|
|
12
|
-
* @param stepPattern The regular expression that will be used to match steps.
|
|
13
|
-
* @param tag An optional tag.
|
|
14
|
-
* @param timeout An optional timeout.
|
|
15
|
-
*/
|
|
16
|
-
export declare function when(stepPattern: RegExp | string, tag?: string, timeout?: number, wrapperOption?: any): MethodDecorator;
|
|
17
|
-
/**
|
|
18
|
-
* A method decorator that marks the associated function as a 'Then' step.
|
|
19
|
-
*
|
|
20
|
-
* @param stepPattern The regular expression that will be used to match steps.
|
|
21
|
-
* @param tag An optional tag.
|
|
22
|
-
* @param timeout An optional timeout.
|
|
23
|
-
*/
|
|
24
|
-
export declare function then(stepPattern: RegExp | string, tag?: string, timeout?: number, wrapperOption?: any): MethodDecorator;
|
|
1
|
+
/**
|
|
2
|
+
* A method decorator that marks the associated function as a 'Given' step.
|
|
3
|
+
*
|
|
4
|
+
* @param stepPattern The regular expression that will be used to match steps.
|
|
5
|
+
* @param tag An optional tag.
|
|
6
|
+
* @param timeout An optional timeout.
|
|
7
|
+
*/
|
|
8
|
+
export declare function given(stepPattern: RegExp | string, tag?: string, timeout?: number, wrapperOption?: any): MethodDecorator;
|
|
9
|
+
/**
|
|
10
|
+
* A method decorator that marks the associated function as a 'When' step.
|
|
11
|
+
*
|
|
12
|
+
* @param stepPattern The regular expression that will be used to match steps.
|
|
13
|
+
* @param tag An optional tag.
|
|
14
|
+
* @param timeout An optional timeout.
|
|
15
|
+
*/
|
|
16
|
+
export declare function when(stepPattern: RegExp | string, tag?: string, timeout?: number, wrapperOption?: any): MethodDecorator;
|
|
17
|
+
/**
|
|
18
|
+
* A method decorator that marks the associated function as a 'Then' step.
|
|
19
|
+
*
|
|
20
|
+
* @param stepPattern The regular expression that will be used to match steps.
|
|
21
|
+
* @param tag An optional tag.
|
|
22
|
+
* @param timeout An optional timeout.
|
|
23
|
+
*/
|
|
24
|
+
export declare function then(stepPattern: RegExp | string, tag?: string, timeout?: number, wrapperOption?: any): MethodDecorator;
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.then = exports.when = exports.given = void 0;
|
|
7
|
-
const binding_registry_1 = require("./binding-registry");
|
|
8
|
-
const our_callsite_1 = require("../utils/our-callsite");
|
|
9
|
-
const step_binding_1 = require("../types/step-binding");
|
|
10
|
-
const short_uuid_1 = __importDefault(require("short-uuid"));
|
|
11
|
-
/**
|
|
12
|
-
* A method decorator that marks the associated function as a 'Given' step.
|
|
13
|
-
*
|
|
14
|
-
* @param stepPattern The regular expression that will be used to match steps.
|
|
15
|
-
* @param tag An optional tag.
|
|
16
|
-
* @param timeout An optional timeout.
|
|
17
|
-
*/
|
|
18
|
-
function given(stepPattern, tag, timeout, wrapperOption) {
|
|
19
|
-
const callsite = our_callsite_1.Callsite.capture();
|
|
20
|
-
return (target, propertyKey, descriptor) => {
|
|
21
|
-
const stepBinding = {
|
|
22
|
-
stepPattern: stepPattern,
|
|
23
|
-
bindingType: step_binding_1.StepBindingFlags.given,
|
|
24
|
-
targetPrototype: target,
|
|
25
|
-
targetPropertyKey: propertyKey,
|
|
26
|
-
argsLength: target[propertyKey].length,
|
|
27
|
-
tags: tag,
|
|
28
|
-
timeout: timeout,
|
|
29
|
-
wrapperOption: wrapperOption,
|
|
30
|
-
callsite: callsite,
|
|
31
|
-
cucumberKey: (0, short_uuid_1.default)().new()
|
|
32
|
-
};
|
|
33
|
-
binding_registry_1.BindingRegistry.instance.registerStepBinding(stepBinding);
|
|
34
|
-
return descriptor;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.given = given;
|
|
38
|
-
/**
|
|
39
|
-
* A method decorator that marks the associated function as a 'When' step.
|
|
40
|
-
*
|
|
41
|
-
* @param stepPattern The regular expression that will be used to match steps.
|
|
42
|
-
* @param tag An optional tag.
|
|
43
|
-
* @param timeout An optional timeout.
|
|
44
|
-
*/
|
|
45
|
-
function when(stepPattern, tag, timeout, wrapperOption) {
|
|
46
|
-
const callsite = our_callsite_1.Callsite.capture();
|
|
47
|
-
return (target, propertyKey, descriptor) => {
|
|
48
|
-
const stepBinding = {
|
|
49
|
-
stepPattern: stepPattern,
|
|
50
|
-
bindingType: step_binding_1.StepBindingFlags.when,
|
|
51
|
-
targetPrototype: target,
|
|
52
|
-
targetPropertyKey: propertyKey,
|
|
53
|
-
argsLength: target[propertyKey].length,
|
|
54
|
-
tags: tag,
|
|
55
|
-
timeout: timeout,
|
|
56
|
-
wrapperOption: wrapperOption,
|
|
57
|
-
callsite: callsite,
|
|
58
|
-
cucumberKey: (0, short_uuid_1.default)().new()
|
|
59
|
-
};
|
|
60
|
-
binding_registry_1.BindingRegistry.instance.registerStepBinding(stepBinding);
|
|
61
|
-
return descriptor;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
exports.when = when;
|
|
65
|
-
/**
|
|
66
|
-
* A method decorator that marks the associated function as a 'Then' step.
|
|
67
|
-
*
|
|
68
|
-
* @param stepPattern The regular expression that will be used to match steps.
|
|
69
|
-
* @param tag An optional tag.
|
|
70
|
-
* @param timeout An optional timeout.
|
|
71
|
-
*/
|
|
72
|
-
function then(stepPattern, tag, timeout, wrapperOption) {
|
|
73
|
-
const callsite = our_callsite_1.Callsite.capture();
|
|
74
|
-
return (target, propertyKey, descriptor) => {
|
|
75
|
-
const stepBinding = {
|
|
76
|
-
stepPattern: stepPattern,
|
|
77
|
-
bindingType: step_binding_1.StepBindingFlags.then,
|
|
78
|
-
targetPrototype: target,
|
|
79
|
-
targetPropertyKey: propertyKey,
|
|
80
|
-
argsLength: target[propertyKey].length,
|
|
81
|
-
tags: tag,
|
|
82
|
-
timeout: timeout,
|
|
83
|
-
wrapperOption: wrapperOption,
|
|
84
|
-
callsite: callsite,
|
|
85
|
-
cucumberKey: (0, short_uuid_1.default)().new()
|
|
86
|
-
};
|
|
87
|
-
binding_registry_1.BindingRegistry.instance.registerStepBinding(stepBinding);
|
|
88
|
-
return descriptor;
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
exports.then = then;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.then = exports.when = exports.given = void 0;
|
|
7
|
+
const binding_registry_1 = require("./binding-registry");
|
|
8
|
+
const our_callsite_1 = require("../utils/our-callsite");
|
|
9
|
+
const step_binding_1 = require("../types/step-binding");
|
|
10
|
+
const short_uuid_1 = __importDefault(require("short-uuid"));
|
|
11
|
+
/**
|
|
12
|
+
* A method decorator that marks the associated function as a 'Given' step.
|
|
13
|
+
*
|
|
14
|
+
* @param stepPattern The regular expression that will be used to match steps.
|
|
15
|
+
* @param tag An optional tag.
|
|
16
|
+
* @param timeout An optional timeout.
|
|
17
|
+
*/
|
|
18
|
+
function given(stepPattern, tag, timeout, wrapperOption) {
|
|
19
|
+
const callsite = our_callsite_1.Callsite.capture();
|
|
20
|
+
return (target, propertyKey, descriptor) => {
|
|
21
|
+
const stepBinding = {
|
|
22
|
+
stepPattern: stepPattern,
|
|
23
|
+
bindingType: step_binding_1.StepBindingFlags.given,
|
|
24
|
+
targetPrototype: target,
|
|
25
|
+
targetPropertyKey: propertyKey,
|
|
26
|
+
argsLength: target[propertyKey].length,
|
|
27
|
+
tags: tag,
|
|
28
|
+
timeout: timeout,
|
|
29
|
+
wrapperOption: wrapperOption,
|
|
30
|
+
callsite: callsite,
|
|
31
|
+
cucumberKey: (0, short_uuid_1.default)().new()
|
|
32
|
+
};
|
|
33
|
+
binding_registry_1.BindingRegistry.instance.registerStepBinding(stepBinding);
|
|
34
|
+
return descriptor;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.given = given;
|
|
38
|
+
/**
|
|
39
|
+
* A method decorator that marks the associated function as a 'When' step.
|
|
40
|
+
*
|
|
41
|
+
* @param stepPattern The regular expression that will be used to match steps.
|
|
42
|
+
* @param tag An optional tag.
|
|
43
|
+
* @param timeout An optional timeout.
|
|
44
|
+
*/
|
|
45
|
+
function when(stepPattern, tag, timeout, wrapperOption) {
|
|
46
|
+
const callsite = our_callsite_1.Callsite.capture();
|
|
47
|
+
return (target, propertyKey, descriptor) => {
|
|
48
|
+
const stepBinding = {
|
|
49
|
+
stepPattern: stepPattern,
|
|
50
|
+
bindingType: step_binding_1.StepBindingFlags.when,
|
|
51
|
+
targetPrototype: target,
|
|
52
|
+
targetPropertyKey: propertyKey,
|
|
53
|
+
argsLength: target[propertyKey].length,
|
|
54
|
+
tags: tag,
|
|
55
|
+
timeout: timeout,
|
|
56
|
+
wrapperOption: wrapperOption,
|
|
57
|
+
callsite: callsite,
|
|
58
|
+
cucumberKey: (0, short_uuid_1.default)().new()
|
|
59
|
+
};
|
|
60
|
+
binding_registry_1.BindingRegistry.instance.registerStepBinding(stepBinding);
|
|
61
|
+
return descriptor;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.when = when;
|
|
65
|
+
/**
|
|
66
|
+
* A method decorator that marks the associated function as a 'Then' step.
|
|
67
|
+
*
|
|
68
|
+
* @param stepPattern The regular expression that will be used to match steps.
|
|
69
|
+
* @param tag An optional tag.
|
|
70
|
+
* @param timeout An optional timeout.
|
|
71
|
+
*/
|
|
72
|
+
function then(stepPattern, tag, timeout, wrapperOption) {
|
|
73
|
+
const callsite = our_callsite_1.Callsite.capture();
|
|
74
|
+
return (target, propertyKey, descriptor) => {
|
|
75
|
+
const stepBinding = {
|
|
76
|
+
stepPattern: stepPattern,
|
|
77
|
+
bindingType: step_binding_1.StepBindingFlags.then,
|
|
78
|
+
targetPrototype: target,
|
|
79
|
+
targetPropertyKey: propertyKey,
|
|
80
|
+
argsLength: target[propertyKey].length,
|
|
81
|
+
tags: tag,
|
|
82
|
+
timeout: timeout,
|
|
83
|
+
wrapperOption: wrapperOption,
|
|
84
|
+
callsite: callsite,
|
|
85
|
+
cucumberKey: (0, short_uuid_1.default)().new()
|
|
86
|
+
};
|
|
87
|
+
binding_registry_1.BindingRegistry.instance.registerStepBinding(stepBinding);
|
|
88
|
+
return descriptor;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
exports.then = then;
|
|
92
92
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1kZWZpbml0aW9uLWRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY3VjdW1iZXIvc3RlcC1kZWZpbml0aW9uLWRlY29yYXRvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEseURBQXFEO0FBQ3JELHdEQUFpRDtBQUNqRCx3REFBc0U7QUFDdEUsNERBQW1DO0FBRW5DOzs7Ozs7R0FNRztBQUNILFNBQWdCLEtBQUssQ0FDcEIsV0FBNEIsRUFDNUIsR0FBWSxFQUNaLE9BQWdCLEVBQ2hCLGFBQW1CO0lBRW5CLE1BQU0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BRyxFQUFFO1NBQzlCLENBQUM7UUFFRixrQ0FBZSxDQUFDLFFBQVEsQ0FBQyxtQkFBbUIsQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUUxRCxPQUFPLFVBQVUsQ0FBQztJQUNuQixDQUFDLENBQUM7QUFDSCxDQUFDO0FBMUJELG9CQTBCQyJ9
|
package/lib/cucumber/utils.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Uses a regular expression to match a step expression with
|
|
3
|
-
* the feature text passed in
|
|
4
|
-
* @param stepText
|
|
5
|
-
* @param featureText
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const hasMatchingStep: (stepText: string, featureText: string) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Helper that uses a lexical parser to apply the tag patterns used by
|
|
11
|
-
* Cucumber to associate hooks with scenario and feature tags
|
|
12
|
-
* @param tagPattern examples: 'tag1', 'tag1 and tag2', 'tag1 or tag2)
|
|
13
|
-
* @param tags
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare const hasMatchingTags: (tagPattern: string, tags: string[]) => boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Uses a regular expression to match a step expression with
|
|
3
|
+
* the feature text passed in
|
|
4
|
+
* @param stepText
|
|
5
|
+
* @param featureText
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const hasMatchingStep: (stepText: string, featureText: string) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Helper that uses a lexical parser to apply the tag patterns used by
|
|
11
|
+
* Cucumber to associate hooks with scenario and feature tags
|
|
12
|
+
* @param tagPattern examples: 'tag1', 'tag1 and tag2', 'tag1 or tag2)
|
|
13
|
+
* @param tags
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare const hasMatchingTags: (tagPattern: string, tags: string[]) => boolean;
|
package/lib/cucumber/utils.js
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.hasMatchingTags = exports.hasMatchingStep = void 0;
|
|
7
|
-
const logical_expression_parser_1 = __importDefault(require("@jeanbenitez/logical-expression-parser"));
|
|
8
|
-
const logger_1 = __importDefault(require("../utils/logger"));
|
|
9
|
-
/**
|
|
10
|
-
* Uses a regular expression to match a step expression with
|
|
11
|
-
* the feature text passed in
|
|
12
|
-
* @param stepText
|
|
13
|
-
* @param featureText
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
const hasMatchingStep = (stepText, featureText) => {
|
|
17
|
-
if (stepText.trim().length === 0)
|
|
18
|
-
return false;
|
|
19
|
-
try {
|
|
20
|
-
const regexStep = new RegExp(getRegTextForStep(stepText));
|
|
21
|
-
const match = featureText.match(regexStep);
|
|
22
|
-
return match !== null && match.length > 0;
|
|
23
|
-
}
|
|
24
|
-
catch (err) {
|
|
25
|
-
logger_1.default.error(err.message);
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.hasMatchingStep = hasMatchingStep;
|
|
30
|
-
/**
|
|
31
|
-
* Helper that uses a lexical parser to apply the tag patterns used by
|
|
32
|
-
* Cucumber to associate hooks with scenario and feature tags
|
|
33
|
-
* @param tagPattern examples: 'tag1', 'tag1 and tag2', 'tag1 or tag2)
|
|
34
|
-
* @param tags
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
const hasMatchingTags = (tagPattern, tags) => {
|
|
38
|
-
return logical_expression_parser_1.default.parse(tagPattern.toLowerCase(), (t) => tags.map(tag => tag.toLowerCase()).includes(t));
|
|
39
|
-
};
|
|
40
|
-
exports.hasMatchingTags = hasMatchingTags;
|
|
41
|
-
const getRegTextForStep = (step) => {
|
|
42
|
-
//Ruby interpolation (like `#{Something}` ) should be replaced with `.*`
|
|
43
|
-
//https://github.com/alexkrechik/VSCucumberAutoComplete/issues/65
|
|
44
|
-
step = step.replace(/#{(.*?)}/g, '.*');
|
|
45
|
-
//Parameter-types
|
|
46
|
-
//https://github.com/alexkrechik/VSCucumberAutoComplete/issues/66
|
|
47
|
-
//https://docs.cucumber.io/cucumber/cucumber-expressions/
|
|
48
|
-
step = step.replace(/{float}/g, '-?\\d*\\.?\\d+');
|
|
49
|
-
step = step.replace(/{bigdecimal}/g, '-?\\d*\\.?\\d+');
|
|
50
|
-
step = step.replace(/{double}/g, '-?\\d*\\.?\\d+');
|
|
51
|
-
step = step.replace(/{int}/g, '-?\\d+');
|
|
52
|
-
step = step.replace(/{biginteger}/g, '-?\\d+');
|
|
53
|
-
step = step.replace(/{byte}/g, '-?\\d+');
|
|
54
|
-
step = step.replace(/{short}/g, '-?\\d+');
|
|
55
|
-
step = step.replace(/{long}/g, '-?\\d+');
|
|
56
|
-
step = step.replace(/{stringInDoubleQuotes}/g, '"[^"]+"');
|
|
57
|
-
step = step.replace(/{word}/g, '[A-Za-z]+');
|
|
58
|
-
step = step.replace(/{string}/g, '("|\')[^\\1]*\\1');
|
|
59
|
-
step = step.replace(/{boolean}/g, 'true|false');
|
|
60
|
-
step = step.replace(/{}/g, '.*');
|
|
61
|
-
//Optional Text
|
|
62
|
-
step = step.replace(/\(([a-z]+)\)/g, '($1)?');
|
|
63
|
-
//Alternative text a/b/c === (a|b|c)
|
|
64
|
-
step = step.replace(/([a-zA-Z]+)(?:\/([a-zA-Z]+))+/g, match => `(${match.replace(/\//g, '|')})`);
|
|
65
|
-
//Handle Cucumber Expressions (like `{Something}`) should be replaced with `.*`
|
|
66
|
-
//https://github.com/alexkrechik/VSCucumberAutoComplete/issues/99
|
|
67
|
-
//Cucumber Expressions Custom Parameter Type Documentation
|
|
68
|
-
//https://docs.cucumber.io/cucumber-expressions/#custom-parameters
|
|
69
|
-
step = step.replace(/([^\\]|^){(?![\d,])(.*?)}/g, '$1.*');
|
|
70
|
-
//Escape all the regex symbols to avoid errors
|
|
71
|
-
step = escapeRegExp(step);
|
|
72
|
-
return step;
|
|
73
|
-
};
|
|
74
|
-
const escapeRegExp = (str) => {
|
|
75
|
-
// eslint-disable-next-line no-useless-escape
|
|
76
|
-
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '$&');
|
|
77
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hasMatchingTags = exports.hasMatchingStep = void 0;
|
|
7
|
+
const logical_expression_parser_1 = __importDefault(require("@jeanbenitez/logical-expression-parser"));
|
|
8
|
+
const logger_1 = __importDefault(require("../utils/logger"));
|
|
9
|
+
/**
|
|
10
|
+
* Uses a regular expression to match a step expression with
|
|
11
|
+
* the feature text passed in
|
|
12
|
+
* @param stepText
|
|
13
|
+
* @param featureText
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
const hasMatchingStep = (stepText, featureText) => {
|
|
17
|
+
if (stepText.trim().length === 0)
|
|
18
|
+
return false;
|
|
19
|
+
try {
|
|
20
|
+
const regexStep = new RegExp(getRegTextForStep(stepText));
|
|
21
|
+
const match = featureText.match(regexStep);
|
|
22
|
+
return match !== null && match.length > 0;
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
logger_1.default.error(err.message);
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.hasMatchingStep = hasMatchingStep;
|
|
30
|
+
/**
|
|
31
|
+
* Helper that uses a lexical parser to apply the tag patterns used by
|
|
32
|
+
* Cucumber to associate hooks with scenario and feature tags
|
|
33
|
+
* @param tagPattern examples: 'tag1', 'tag1 and tag2', 'tag1 or tag2)
|
|
34
|
+
* @param tags
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
const hasMatchingTags = (tagPattern, tags) => {
|
|
38
|
+
return logical_expression_parser_1.default.parse(tagPattern.toLowerCase(), (t) => tags.map(tag => tag.toLowerCase()).includes(t));
|
|
39
|
+
};
|
|
40
|
+
exports.hasMatchingTags = hasMatchingTags;
|
|
41
|
+
const getRegTextForStep = (step) => {
|
|
42
|
+
//Ruby interpolation (like `#{Something}` ) should be replaced with `.*`
|
|
43
|
+
//https://github.com/alexkrechik/VSCucumberAutoComplete/issues/65
|
|
44
|
+
step = step.replace(/#{(.*?)}/g, '.*');
|
|
45
|
+
//Parameter-types
|
|
46
|
+
//https://github.com/alexkrechik/VSCucumberAutoComplete/issues/66
|
|
47
|
+
//https://docs.cucumber.io/cucumber/cucumber-expressions/
|
|
48
|
+
step = step.replace(/{float}/g, '-?\\d*\\.?\\d+');
|
|
49
|
+
step = step.replace(/{bigdecimal}/g, '-?\\d*\\.?\\d+');
|
|
50
|
+
step = step.replace(/{double}/g, '-?\\d*\\.?\\d+');
|
|
51
|
+
step = step.replace(/{int}/g, '-?\\d+');
|
|
52
|
+
step = step.replace(/{biginteger}/g, '-?\\d+');
|
|
53
|
+
step = step.replace(/{byte}/g, '-?\\d+');
|
|
54
|
+
step = step.replace(/{short}/g, '-?\\d+');
|
|
55
|
+
step = step.replace(/{long}/g, '-?\\d+');
|
|
56
|
+
step = step.replace(/{stringInDoubleQuotes}/g, '"[^"]+"');
|
|
57
|
+
step = step.replace(/{word}/g, '[A-Za-z]+');
|
|
58
|
+
step = step.replace(/{string}/g, '("|\')[^\\1]*\\1');
|
|
59
|
+
step = step.replace(/{boolean}/g, 'true|false');
|
|
60
|
+
step = step.replace(/{}/g, '.*');
|
|
61
|
+
//Optional Text
|
|
62
|
+
step = step.replace(/\(([a-z]+)\)/g, '($1)?');
|
|
63
|
+
//Alternative text a/b/c === (a|b|c)
|
|
64
|
+
step = step.replace(/([a-zA-Z]+)(?:\/([a-zA-Z]+))+/g, match => `(${match.replace(/\//g, '|')})`);
|
|
65
|
+
//Handle Cucumber Expressions (like `{Something}`) should be replaced with `.*`
|
|
66
|
+
//https://github.com/alexkrechik/VSCucumberAutoComplete/issues/99
|
|
67
|
+
//Cucumber Expressions Custom Parameter Type Documentation
|
|
68
|
+
//https://docs.cucumber.io/cucumber-expressions/#custom-parameters
|
|
69
|
+
step = step.replace(/([^\\]|^){(?![\d,])(.*?)}/g, '$1.*');
|
|
70
|
+
//Escape all the regex symbols to avoid errors
|
|
71
|
+
step = escapeRegExp(step);
|
|
72
|
+
return step;
|
|
73
|
+
};
|
|
74
|
+
const escapeRegExp = (str) => {
|
|
75
|
+
// eslint-disable-next-line no-useless-escape
|
|
76
|
+
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '$&');
|
|
77
|
+
};
|
|
78
78
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY3VjdW1iZXIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsdUdBQXlEO0FBQ3pELDZEQUFxQztBQUVyQzs7Ozs7O0dBTUc7QUFDSSxNQUFNLGVBQWUsR0FBRyxDQUFDLFFBQWdCLEVBQUUsV0FBbUIsRUFBVyxFQUFFO0lBQ2pGLElBQUksUUFBUSxDQUFDLElBQUksRUFBRSxDQUFDLE1BQU0sS0FBSyxDQUFDO1FBQUUsT0FBTyxLQUFLLENBQUM7SUFFL0MsSUFBSTtRQUNILE1BQU0sU0FBUyxHQUFHLElBQUksTUFBTSxDQUFDLGlCQUFpQixDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDMUQsTUFBTSxLQUFLLEdBQUcsV0FBVyxDQUFDLEtBQUssQ0FBQyxTQUFTLEN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UFBSSxDQUFDLE9BQU8sQ0FBQyxnQ0FBZ0MsRUFBRSxLQUFLLENBQUMsRUFBRSxDQUFDLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBRWpHLCtFQUErRTtJQUMvRSxpRUFBaUU7SUFDakUsMERBQTBEO0lBQzFELGtFQUFrRTtJQUNsRSxJQUFJLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyw0QkFBNEIsRUFBRSxNQUFNLENBQUMsQ0FBQztJQUUxRCw4Q0FBOEM7SUFDOUMsSUFBSSxHQUFHLFlBQVksQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUUxQixPQUFPLElBQUksQ0FBQztBQUNiLENBQUMsQ0FBQztBQUVGLE1BQU0sWUFBWSxHQUFHLENBQUMsR0FBVyxFQUFVLEVBQUU7SUFDNUMsNkNBQTZDO0lBQzdDLE9BQU8sR0FBRyxDQUFDLE9BQU8sQ0FBQyxxQ0FBcUMsRUFBRSxJQUFJLENBQUMsQ0FBQztBQUNqRSxDQUFDLENBQUMifQ==
|
package/lib/esnode.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require('ts-node').register({
|
|
3
|
-
compilerOptions: {
|
|
4
|
-
module: '
|
|
5
|
-
moduleResolution: 'node',
|
|
6
|
-
target: 'es2020',
|
|
7
|
-
strict: true,
|
|
8
|
-
experimentalDecorators: true,
|
|
9
|
-
allowSyntheticDefaultImports: true,
|
|
10
|
-
resolveJsonModule: true,
|
|
11
|
-
esModuleInterop: true,
|
|
12
|
-
skipLibCheck: true,
|
|
13
|
-
lib: ['es2020']
|
|
14
|
-
},
|
|
15
|
-
transpileOnly: true,
|
|
16
|
-
transpiler: '@lynxwall/cucumber-tsflow/lib/transpilers/esbuild-transpiler'
|
|
17
|
-
});
|
|
18
|
-
require('tsconfig-paths').register();
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
"use strict";
|
|
2
|
+
require('ts-node').register({
|
|
3
|
+
compilerOptions: {
|
|
4
|
+
module: 'es2020',
|
|
5
|
+
moduleResolution: 'node',
|
|
6
|
+
target: 'es2020',
|
|
7
|
+
strict: true,
|
|
8
|
+
experimentalDecorators: true,
|
|
9
|
+
allowSyntheticDefaultImports: true,
|
|
10
|
+
resolveJsonModule: true,
|
|
11
|
+
esModuleInterop: true,
|
|
12
|
+
skipLibCheck: true,
|
|
13
|
+
lib: ['es2020']
|
|
14
|
+
},
|
|
15
|
+
transpileOnly: true,
|
|
16
|
+
transpiler: '@lynxwall/cucumber-tsflow/lib/transpilers/esbuild-transpiler'
|
|
17
|
+
});
|
|
18
|
+
require('tsconfig-paths').register();
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNub2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Vzbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDLFFBQVEsQ0FBQztJQUMzQixlQUFlLEVBQUU7UUFDaEIsTUFBTSxFQUFFLFFBQVE7UUFDaEIsZ0JBQWdCLEVBQUUsTUFBTTtRQUN4QixNQUFNLEVBQUUsUUFBUTtRQUNoQixNQUFNLEVBQUUsSUFBSTtRQUNaLHNCQUFzQixFQUFFLElBQUk7UUFDNUIsNEJBQTRCLEVBQUUsSUFBSTtRQUNsQyxpQkFBaUIsRUFBRSxJQUFJO1FBQ3ZCLGVBQWUsRUFBRSxJQUFJO1FBQ3JCLFlBQVksRUFBRSxJQUFJO1FBQ2xCLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQztLQUNmO0lBQ0QsYUFBYSxFQUFFLElBQUk7SUFDbkIsVUFBVSxFQUFFLDhEQUE4RDtDQUMxRSxDQUFDLENBQUM7QUFFSCxPQUFPLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxRQUFRLEVBQUUsQ0FBQyJ9
|
package/lib/esvue.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|