@lynxwall/cucumber-tsflow 6.0.2 → 6.1.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/bin/cucumber-tsflow +0 -0
- 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 +100 -100
- package/lib/cli/load-configuration.d.ts +20 -20
- package/lib/cli/load-configuration.js +90 -93
- package/lib/cli/run.d.ts +1 -1
- package/lib/cli/run.js +47 -49
- 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 +215 -215
- 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 +95 -95
- package/lib/cucumber/message-collector.d.ts +81 -81
- package/lib/cucumber/message-collector.js +250 -250
- package/lib/cucumber/parallel/coordinator.d.ts +79 -79
- package/lib/cucumber/parallel/coordinator.js +246 -246
- 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 -30
- package/lib/cucumber/parallel/worker.js +103 -103
- 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 +18 -18
- package/lib/esvue.d.ts +1 -1
- package/lib/esvue.js +40 -40
- package/lib/formatters/behave-json-formatter.d.ts +49 -49
- package/lib/formatters/behave-json-formatter.js +74 -74
- package/lib/formatters/tsflow-snippet-syntax.d.ts +9 -9
- package/lib/formatters/tsflow-snippet-syntax.js +89 -89
- 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 +353 -333
- package/lib/gherkin/gherkin-manager.d.ts +29 -29
- package/lib/gherkin/gherkin-manager.js +143 -114
- package/lib/gherkin/models.d.ts +46 -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 +18 -18
- 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 +46 -46
- package/lib/transpilers/vue-sfc/main.d.ts +8 -8
- package/lib/transpilers/vue-sfc/main.js +247 -247
- 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 +101 -101
- 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 +22 -22
- 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 +72 -72
- package/lib/version.d.ts +1 -1
- package/lib/version.js +5 -5
- package/package.json +7 -7
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseQuery = exports.parseVueRequest = void 0;
|
|
4
|
-
const parseVueRequest = (id) => {
|
|
5
|
-
const [filename, rawQuery] = id.split(`?`, 2);
|
|
6
|
-
const query = (0, exports.parseQuery)(rawQuery);
|
|
7
|
-
if (query.vue != null) {
|
|
8
|
-
query.vue = true;
|
|
9
|
-
}
|
|
10
|
-
if (query.index != null) {
|
|
11
|
-
query.index = Number(query.index);
|
|
12
|
-
}
|
|
13
|
-
if (query.raw != null) {
|
|
14
|
-
query.raw = true;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
filename,
|
|
18
|
-
query
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
exports.parseVueRequest = parseVueRequest;
|
|
22
|
-
const parseQuery = (querystring) => {
|
|
23
|
-
const vueQuery = {};
|
|
24
|
-
const params = new URLSearchParams(querystring);
|
|
25
|
-
for (const key of params.keys()) {
|
|
26
|
-
if (params.getAll(key).length > 1) {
|
|
27
|
-
vueQuery[key] = params.getAll(key);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
vueQuery[key] = params.get(key);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return vueQuery;
|
|
34
|
-
};
|
|
35
|
-
exports.parseQuery = parseQuery;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseQuery = exports.parseVueRequest = void 0;
|
|
4
|
+
const parseVueRequest = (id) => {
|
|
5
|
+
const [filename, rawQuery] = id.split(`?`, 2);
|
|
6
|
+
const query = (0, exports.parseQuery)(rawQuery);
|
|
7
|
+
if (query.vue != null) {
|
|
8
|
+
query.vue = true;
|
|
9
|
+
}
|
|
10
|
+
if (query.index != null) {
|
|
11
|
+
query.index = Number(query.index);
|
|
12
|
+
}
|
|
13
|
+
if (query.raw != null) {
|
|
14
|
+
query.raw = true;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
filename,
|
|
18
|
+
query
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.parseVueRequest = parseVueRequest;
|
|
22
|
+
const parseQuery = (querystring) => {
|
|
23
|
+
const vueQuery = {};
|
|
24
|
+
const params = new URLSearchParams(querystring);
|
|
25
|
+
for (const key of params.keys()) {
|
|
26
|
+
if (params.getAll(key).length > 1) {
|
|
27
|
+
vueQuery[key] = params.getAll(key);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
vueQuery[key] = params.get(key);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return vueQuery;
|
|
34
|
+
};
|
|
35
|
+
exports.parseQuery = parseQuery;
|
|
36
36
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHJhbnNwaWxlcnMvdnVlLXNmYy91dGlscy9xdWVyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFTTyxNQUFNLGVBQWUsR0FBRyxDQUM5QixFQUFVLEVBSVQsRUFBRTtJQUNILE1BQU0sQ0FBQyxRQUFRLEVBQUUsUUFBUSxDQUFDLEdBQUcsRUFBRSxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDOUMsTUFBTSxLQUFLLEdBQUcsSUFBQSxrQkFBVSxFQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ25DLElBQUksS0FBSyxDQUFDLEdBQUcsSUFBSSxJQUFJLEVBQUU7UUFDdEIsS0FBSyxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUM7S0FDakI7SUFDRCxJQUFJLEtBQUssQ0FBQyxLQUFLLElBQUksSUFBSSxFQUFFO1FBQ3hCLEtBQUssQ0FBQyxLQUFLLEdBQUcsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztLQUNsQztJQUNELElBQUksS0FBSyxDQUFDLEdBQUcsSUFBSSxJQUFJLEVBQUU7UUFDdEIsS0FBSyxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUM7S0FDakI7SUFDRCxPQUFPO1FBQ04sUUFBUTtRQUNSLEtBQUs7S0FDTCxDQUFDO0FBQ0gsQ0FBQyxDQUFDO0FBckJXLFFBQUEsZUFBZSxtQkFxQjFCO0FBRUssTUFBTSxVQUFVLEdBQUcsQ0FBQyxXQUFtQixFQUFZLEVBQUU7SUFDM0QsTUFBTSxRQUFRLEdBQVEsRUFBRSxDQUFDO0lBQ3pCLE1BQU0sTUFBTSxHQUFHLElBQUksZUFBZSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQ2hELEtBQUssTUFBTSxHQUFHLElBQUksTUFBTSxDQUFDLElBQUksRUFBRSxFQUFFO1FBQ2hDLElBQUksTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO1lBQ2xDLFFBQVEsQ0FBQyxHQUFHLENBQUMsR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQ25DO2FBQU07WUFDTixRQUFRLENBQUMsR0FBRyxDQUFDLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUNoQztLQUNEO0lBQ0QsT0FBTyxRQUFRLENBQUM7QUFDakIsQ0FBQyxDQUFDO0FBWFcsUUFBQSxVQUFVLGNBV3JCIn0=
|
package/lib/tsnode.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require('ts-node').register({
|
|
3
|
-
compilerOptions: {
|
|
4
|
-
module: 'commonjs',
|
|
5
|
-
moduleResolution: 'node',
|
|
6
|
-
target: 'es2022',
|
|
7
|
-
strict: true,
|
|
8
|
-
experimentalDecorators: true,
|
|
9
|
-
allowSyntheticDefaultImports: true,
|
|
10
|
-
resolveJsonModule: true,
|
|
11
|
-
esModuleInterop: true,
|
|
12
|
-
skipLibCheck: true,
|
|
13
|
-
lib: ['es2022']
|
|
14
|
-
},
|
|
15
|
-
transpileOnly: true
|
|
16
|
-
});
|
|
17
|
-
require('tsconfig-paths').register();
|
|
1
|
+
"use strict";
|
|
2
|
+
require('ts-node').register({
|
|
3
|
+
compilerOptions: {
|
|
4
|
+
module: 'commonjs',
|
|
5
|
+
moduleResolution: 'node',
|
|
6
|
+
target: 'es2022',
|
|
7
|
+
strict: true,
|
|
8
|
+
experimentalDecorators: true,
|
|
9
|
+
allowSyntheticDefaultImports: true,
|
|
10
|
+
resolveJsonModule: true,
|
|
11
|
+
esModuleInterop: true,
|
|
12
|
+
skipLibCheck: true,
|
|
13
|
+
lib: ['es2022']
|
|
14
|
+
},
|
|
15
|
+
transpileOnly: true
|
|
16
|
+
});
|
|
17
|
+
require('tsconfig-paths').register();
|
|
18
18
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHNub2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3Rzbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDLFFBQVEsQ0FBQztJQUMzQixlQUFlLEVBQUU7UUFDaEIsTUFBTSxFQUFFLFVBQVU7UUFDbEIsZ0JBQWdCLEVBQUUsTUFBTTtRQUN4QixNQUFNLEVBQUUsUUFBUTtRQUNoQixNQUFNLEVBQUUsSUFBSTtRQUNaLHNCQUFzQixFQUFFLElBQUk7UUFDNUIsNEJBQTRCLEVBQUUsSUFBSTtRQUNsQyxpQkFBaUIsRUFBRSxJQUFJO1FBQ3ZCLGVBQWUsRUFBRSxJQUFJO1FBQ3JCLFlBQVksRUFBRSxJQUFJO1FBQ2xCLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQztLQUNmO0lBQ0QsYUFBYSxFQUFFLElBQUk7Q0FDbkIsQ0FBQyxDQUFDO0FBRUgsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUMsUUFBUSxFQUFFLENBQUMifQ==
|
package/lib/tsvue.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/tsvue.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
|
-
const hooks = require('require-extension-hooks');
|
|
7
|
-
const vue_sfc_1 = __importDefault(require("./transpilers/vue-sfc"));
|
|
8
|
-
require('ts-node').register({
|
|
9
|
-
compilerOptions: {
|
|
10
|
-
module: 'commonjs',
|
|
11
|
-
moduleResolution: 'node',
|
|
12
|
-
target: 'es2022',
|
|
13
|
-
strict: true,
|
|
14
|
-
experimentalDecorators: true,
|
|
15
|
-
allowSyntheticDefaultImports: true,
|
|
16
|
-
resolveJsonModule: true,
|
|
17
|
-
esModuleInterop: true,
|
|
18
|
-
skipLibCheck: true,
|
|
19
|
-
lib: ['es2022']
|
|
20
|
-
},
|
|
21
|
-
transpileOnly: true
|
|
22
|
-
});
|
|
23
|
-
require('tsconfig-paths').register();
|
|
24
|
-
// Register jsdom globally and set SVGElement on global
|
|
25
|
-
require('jsdom-global')();
|
|
26
|
-
global.SVGElement = global.window.SVGElement;
|
|
27
|
-
hooks('vue').push(function (params) {
|
|
28
|
-
try {
|
|
29
|
-
const transformer = new vue_sfc_1.default({
|
|
30
|
-
exclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']
|
|
31
|
-
});
|
|
32
|
-
const transformResult = transformer.transformCode(params.content, params.filename);
|
|
33
|
-
return transformResult.code;
|
|
34
|
-
}
|
|
35
|
-
catch (err) {
|
|
36
|
-
console.log(err);
|
|
37
|
-
}
|
|
38
|
-
return params.content;
|
|
39
|
-
});
|
|
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
|
+
const hooks = require('require-extension-hooks');
|
|
7
|
+
const vue_sfc_1 = __importDefault(require("./transpilers/vue-sfc"));
|
|
8
|
+
require('ts-node').register({
|
|
9
|
+
compilerOptions: {
|
|
10
|
+
module: 'commonjs',
|
|
11
|
+
moduleResolution: 'node',
|
|
12
|
+
target: 'es2022',
|
|
13
|
+
strict: true,
|
|
14
|
+
experimentalDecorators: true,
|
|
15
|
+
allowSyntheticDefaultImports: true,
|
|
16
|
+
resolveJsonModule: true,
|
|
17
|
+
esModuleInterop: true,
|
|
18
|
+
skipLibCheck: true,
|
|
19
|
+
lib: ['es2022']
|
|
20
|
+
},
|
|
21
|
+
transpileOnly: true
|
|
22
|
+
});
|
|
23
|
+
require('tsconfig-paths').register();
|
|
24
|
+
// Register jsdom globally and set SVGElement on global
|
|
25
|
+
require('jsdom-global')();
|
|
26
|
+
global.SVGElement = global.window.SVGElement;
|
|
27
|
+
hooks('vue').push(function (params) {
|
|
28
|
+
try {
|
|
29
|
+
const transformer = new vue_sfc_1.default({
|
|
30
|
+
exclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']
|
|
31
|
+
});
|
|
32
|
+
const transformResult = transformer.transformCode(params.content, params.filename);
|
|
33
|
+
return transformResult.code;
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
console.log(err);
|
|
37
|
+
}
|
|
38
|
+
return params.content;
|
|
39
|
+
});
|
|
40
40
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHN2dWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHN2dWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxNQUFNLEtBQUssR0FBRyxPQUFPLENBQUMseUJBQXlCLENBQUMsQ0FBQztBQUNqRCxvRUFBbUQ7QUFFbkQsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDLFFBQVEsQ0FBQztJQUMzQixlQUFlLEVBQUU7UUFDaEIsTUFBTSxFQUFFLFVBQVU7UUFDbEIsZ0JBQWdCLEVBQUUsTUFBTTtRQUN4QixNQUFNLEVBQUUsUUFBUTtRQUNoQixNQUFNLEVBQUUsSUFBSTtRQUNaLHNCQUFzQixFQUFFLElBQUk7UUFDNUIsNEJBQTRCLEVBQUUsSUFBSTtRQUNsQyxpQkFBaUIsRUFBRSxJQUFJO1FBQ3ZCLGVBQWUsRUFBRSxJQUFJO1FBQ3JCLFlBQVksRUFBRSxJQUFJO1FBQ2xCLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQztLQUNmO0lBQ0QsYUFBYSxFQUFFLElBQUk7Q0FDbkIsQ0FBQyxDQUFDO0FBRUgsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUMsUUFBUSxFQUFFLENBQUM7QUFFckMsdURBQXVEO0FBQ3ZELE9BQU8sQ0FBQyxjQUFjLENBQUMsRUFBRSxDQUFDO0FBQ3pCLE1BQWMsQ0FBQyxVQUFVLEdBQUksTUFBYyxDQUFDLE1BQU0sQ0FBQyxVQUFVLENBQUM7QUFFL0QsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDLElBQUksQ0FBQyxVQUFVLE1BQVc7SUFDdEMsSUFBSTtRQUNILE1BQU0sV0FBVyxHQUFHLElBQUksaUJBQWMsQ0FBQztZQUN0QyxPQUFPLEVBQUUsQ0FBQyxzQkFBc0IsRUFBRSw2QkFBNkIsQ0FBQztTQUNoRSxDQUFDLENBQUM7UUFDSCxNQUFNLGVBQWUsR0FBRyxXQUFXLENBQUMsYUFBYSxDQUFDLE1BQU0sQ0FBQyxPQUFPLEVBQUUsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBRW5GLE9BQU8sZUFBZSxDQUFDLElBQUksQ0FBQztLQUM1QjtJQUFDLE9BQU8sR0FBRyxFQUFFO1FBQ2IsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztLQUNqQjtJQUNELE9BQU8sTUFBTSxDQUFDLE9BQU8sQ0FBQztBQUN2QixDQUFDLENBQUMsQ0FBQyJ9
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ScenarioInfo } from './scenario-info';
|
|
2
|
-
/**
|
|
3
|
-
* Provides context for the currently running Cucumber scenario.
|
|
4
|
-
*/
|
|
5
|
-
export interface ScenarioContext {
|
|
6
|
-
/**
|
|
7
|
-
* Gets information about the scenario.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
scenarioInfo: ScenarioInfo;
|
|
11
|
-
/**
|
|
12
|
-
* Gets or sets an arbitary object within the running scenario.
|
|
13
|
-
*/
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}
|
|
16
|
-
export * from './scenario-info';
|
|
1
|
+
import { ScenarioInfo } from './scenario-info';
|
|
2
|
+
/**
|
|
3
|
+
* Provides context for the currently running Cucumber scenario.
|
|
4
|
+
*/
|
|
5
|
+
export interface ScenarioContext {
|
|
6
|
+
/**
|
|
7
|
+
* Gets information about the scenario.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
scenarioInfo: ScenarioInfo;
|
|
11
|
+
/**
|
|
12
|
+
* Gets or sets an arbitary object within the running scenario.
|
|
13
|
+
*/
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export * from './scenario-info';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./scenario-info"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./scenario-info"), exports);
|
|
18
18
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NlbmFyaW8tY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90eXBlcy9zY2VuYXJpby1jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFrQkEsa0RBQWdDIn0=
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { TagName } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Provides information about a running Cucumber scenario.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ScenarioInfo {
|
|
6
|
-
scenarioTitle: string;
|
|
7
|
-
tags: TagName[];
|
|
8
|
-
/**
|
|
9
|
-
* Initializes the [[ScenarioInfo]] object.
|
|
10
|
-
*
|
|
11
|
-
* @param scenarioTitle The string title of the currently running Cucumber scenario.
|
|
12
|
-
* @param tags An array of [[TagName]] representing the tags that are in scope for the currently
|
|
13
|
-
* running Cucumber scenario.
|
|
14
|
-
*/
|
|
15
|
-
constructor(scenarioTitle: string, tags: TagName[]);
|
|
16
|
-
}
|
|
1
|
+
import { TagName } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Provides information about a running Cucumber scenario.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ScenarioInfo {
|
|
6
|
+
scenarioTitle: string;
|
|
7
|
+
tags: TagName[];
|
|
8
|
+
/**
|
|
9
|
+
* Initializes the [[ScenarioInfo]] object.
|
|
10
|
+
*
|
|
11
|
+
* @param scenarioTitle The string title of the currently running Cucumber scenario.
|
|
12
|
+
* @param tags An array of [[TagName]] representing the tags that are in scope for the currently
|
|
13
|
+
* running Cucumber scenario.
|
|
14
|
+
*/
|
|
15
|
+
constructor(scenarioTitle: string, tags: TagName[]);
|
|
16
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScenarioInfo = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Provides information about a running Cucumber scenario.
|
|
6
|
-
*/
|
|
7
|
-
class ScenarioInfo {
|
|
8
|
-
scenarioTitle;
|
|
9
|
-
tags;
|
|
10
|
-
/**
|
|
11
|
-
* Initializes the [[ScenarioInfo]] object.
|
|
12
|
-
*
|
|
13
|
-
* @param scenarioTitle The string title of the currently running Cucumber scenario.
|
|
14
|
-
* @param tags An array of [[TagName]] representing the tags that are in scope for the currently
|
|
15
|
-
* running Cucumber scenario.
|
|
16
|
-
*/
|
|
17
|
-
constructor(scenarioTitle, tags) {
|
|
18
|
-
this.scenarioTitle = scenarioTitle;
|
|
19
|
-
this.tags = tags;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.ScenarioInfo = ScenarioInfo;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScenarioInfo = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Provides information about a running Cucumber scenario.
|
|
6
|
+
*/
|
|
7
|
+
class ScenarioInfo {
|
|
8
|
+
scenarioTitle;
|
|
9
|
+
tags;
|
|
10
|
+
/**
|
|
11
|
+
* Initializes the [[ScenarioInfo]] object.
|
|
12
|
+
*
|
|
13
|
+
* @param scenarioTitle The string title of the currently running Cucumber scenario.
|
|
14
|
+
* @param tags An array of [[TagName]] representing the tags that are in scope for the currently
|
|
15
|
+
* running Cucumber scenario.
|
|
16
|
+
*/
|
|
17
|
+
constructor(scenarioTitle, tags) {
|
|
18
|
+
this.scenarioTitle = scenarioTitle;
|
|
19
|
+
this.tags = tags;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ScenarioInfo = ScenarioInfo;
|
|
23
23
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NlbmFyaW8taW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90eXBlcy9zY2VuYXJpby1pbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBOztHQUVHO0FBQ0gsTUFBYSxZQUFZO0lBUUw7SUFBOEI7SUFQakQ7Ozs7OztPQU1HO0lBQ0gsWUFBbUIsYUFBcUIsRUFBUyxJQUFlO1FBQTdDLGtCQUFhLEdBQWIsYUFBYSxDQUFRO1FBQVMsU0FBSSxHQUFKLElBQUksQ0FBVztJQUFHLENBQUM7Q0FDcEU7QUFURCxvQ0FTQyJ9
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The CucumberJS step binding types.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum StepBindingFlags {
|
|
5
|
-
/**
|
|
6
|
-
* No bindings.
|
|
7
|
-
*/
|
|
8
|
-
none = 0,
|
|
9
|
-
/**
|
|
10
|
-
* A 'Given' step definition binding.
|
|
11
|
-
*/
|
|
12
|
-
given = 1,
|
|
13
|
-
/**
|
|
14
|
-
* A 'When' step definition binding.
|
|
15
|
-
*/
|
|
16
|
-
when = 2,
|
|
17
|
-
/**
|
|
18
|
-
* A 'Then' step definition binding.
|
|
19
|
-
*/
|
|
20
|
-
then = 4,
|
|
21
|
-
/**
|
|
22
|
-
* A 'Before' hook binding.
|
|
23
|
-
*/
|
|
24
|
-
before = 8,
|
|
25
|
-
/**
|
|
26
|
-
* An 'After' hook binding.
|
|
27
|
-
*/
|
|
28
|
-
after = 16,
|
|
29
|
-
/**
|
|
30
|
-
* An 'BeforeAll' hook binding
|
|
31
|
-
*/
|
|
32
|
-
beforeAll = 32,
|
|
33
|
-
/**
|
|
34
|
-
* An 'AfterAll' hook binding
|
|
35
|
-
*/
|
|
36
|
-
afterAll = 64,
|
|
37
|
-
/**
|
|
38
|
-
* An 'BeforeStep' hook binding
|
|
39
|
-
*/
|
|
40
|
-
beforeStep = 128,
|
|
41
|
-
/**
|
|
42
|
-
* An 'AfterStep' hook binding
|
|
43
|
-
*/
|
|
44
|
-
afterStep = 256,
|
|
45
|
-
/**
|
|
46
|
-
* All step definition bindings.
|
|
47
|
-
*/
|
|
48
|
-
StepDefinitions = 7,
|
|
49
|
-
/**
|
|
50
|
-
* All hook bindings.
|
|
51
|
-
*/
|
|
52
|
-
Hooks = 504
|
|
53
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The CucumberJS step binding types.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum StepBindingFlags {
|
|
5
|
+
/**
|
|
6
|
+
* No bindings.
|
|
7
|
+
*/
|
|
8
|
+
none = 0,
|
|
9
|
+
/**
|
|
10
|
+
* A 'Given' step definition binding.
|
|
11
|
+
*/
|
|
12
|
+
given = 1,
|
|
13
|
+
/**
|
|
14
|
+
* A 'When' step definition binding.
|
|
15
|
+
*/
|
|
16
|
+
when = 2,
|
|
17
|
+
/**
|
|
18
|
+
* A 'Then' step definition binding.
|
|
19
|
+
*/
|
|
20
|
+
then = 4,
|
|
21
|
+
/**
|
|
22
|
+
* A 'Before' hook binding.
|
|
23
|
+
*/
|
|
24
|
+
before = 8,
|
|
25
|
+
/**
|
|
26
|
+
* An 'After' hook binding.
|
|
27
|
+
*/
|
|
28
|
+
after = 16,
|
|
29
|
+
/**
|
|
30
|
+
* An 'BeforeAll' hook binding
|
|
31
|
+
*/
|
|
32
|
+
beforeAll = 32,
|
|
33
|
+
/**
|
|
34
|
+
* An 'AfterAll' hook binding
|
|
35
|
+
*/
|
|
36
|
+
afterAll = 64,
|
|
37
|
+
/**
|
|
38
|
+
* An 'BeforeStep' hook binding
|
|
39
|
+
*/
|
|
40
|
+
beforeStep = 128,
|
|
41
|
+
/**
|
|
42
|
+
* An 'AfterStep' hook binding
|
|
43
|
+
*/
|
|
44
|
+
afterStep = 256,
|
|
45
|
+
/**
|
|
46
|
+
* All step definition bindings.
|
|
47
|
+
*/
|
|
48
|
+
StepDefinitions = 7,
|
|
49
|
+
/**
|
|
50
|
+
* All hook bindings.
|
|
51
|
+
*/
|
|
52
|
+
Hooks = 504
|
|
53
|
+
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StepBindingFlags = void 0;
|
|
4
|
-
// tslint:disable:no-bitwise
|
|
5
|
-
/**
|
|
6
|
-
* The CucumberJS step binding types.
|
|
7
|
-
*/
|
|
8
|
-
var StepBindingFlags;
|
|
9
|
-
(function (StepBindingFlags) {
|
|
10
|
-
/**
|
|
11
|
-
* No bindings.
|
|
12
|
-
*/
|
|
13
|
-
StepBindingFlags[StepBindingFlags["none"] = 0] = "none";
|
|
14
|
-
/**
|
|
15
|
-
* A 'Given' step definition binding.
|
|
16
|
-
*/
|
|
17
|
-
StepBindingFlags[StepBindingFlags["given"] = 1] = "given";
|
|
18
|
-
/**
|
|
19
|
-
* A 'When' step definition binding.
|
|
20
|
-
*/
|
|
21
|
-
StepBindingFlags[StepBindingFlags["when"] = 2] = "when";
|
|
22
|
-
/**
|
|
23
|
-
* A 'Then' step definition binding.
|
|
24
|
-
*/
|
|
25
|
-
StepBindingFlags[StepBindingFlags["then"] = 4] = "then";
|
|
26
|
-
/**
|
|
27
|
-
* A 'Before' hook binding.
|
|
28
|
-
*/
|
|
29
|
-
StepBindingFlags[StepBindingFlags["before"] = 8] = "before";
|
|
30
|
-
/**
|
|
31
|
-
* An 'After' hook binding.
|
|
32
|
-
*/
|
|
33
|
-
StepBindingFlags[StepBindingFlags["after"] = 16] = "after";
|
|
34
|
-
/**
|
|
35
|
-
* An 'BeforeAll' hook binding
|
|
36
|
-
*/
|
|
37
|
-
StepBindingFlags[StepBindingFlags["beforeAll"] = 32] = "beforeAll";
|
|
38
|
-
/**
|
|
39
|
-
* An 'AfterAll' hook binding
|
|
40
|
-
*/
|
|
41
|
-
StepBindingFlags[StepBindingFlags["afterAll"] = 64] = "afterAll";
|
|
42
|
-
/**
|
|
43
|
-
* An 'BeforeStep' hook binding
|
|
44
|
-
*/
|
|
45
|
-
StepBindingFlags[StepBindingFlags["beforeStep"] = 128] = "beforeStep";
|
|
46
|
-
/**
|
|
47
|
-
* An 'AfterStep' hook binding
|
|
48
|
-
*/
|
|
49
|
-
StepBindingFlags[StepBindingFlags["afterStep"] = 256] = "afterStep";
|
|
50
|
-
/**
|
|
51
|
-
* All step definition bindings.
|
|
52
|
-
*/
|
|
53
|
-
StepBindingFlags[StepBindingFlags["StepDefinitions"] = 7] = "StepDefinitions";
|
|
54
|
-
/**
|
|
55
|
-
* All hook bindings.
|
|
56
|
-
*/
|
|
57
|
-
StepBindingFlags[StepBindingFlags["Hooks"] = 504] = "Hooks";
|
|
58
|
-
})(StepBindingFlags = exports.StepBindingFlags || (exports.StepBindingFlags = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepBindingFlags = void 0;
|
|
4
|
+
// tslint:disable:no-bitwise
|
|
5
|
+
/**
|
|
6
|
+
* The CucumberJS step binding types.
|
|
7
|
+
*/
|
|
8
|
+
var StepBindingFlags;
|
|
9
|
+
(function (StepBindingFlags) {
|
|
10
|
+
/**
|
|
11
|
+
* No bindings.
|
|
12
|
+
*/
|
|
13
|
+
StepBindingFlags[StepBindingFlags["none"] = 0] = "none";
|
|
14
|
+
/**
|
|
15
|
+
* A 'Given' step definition binding.
|
|
16
|
+
*/
|
|
17
|
+
StepBindingFlags[StepBindingFlags["given"] = 1] = "given";
|
|
18
|
+
/**
|
|
19
|
+
* A 'When' step definition binding.
|
|
20
|
+
*/
|
|
21
|
+
StepBindingFlags[StepBindingFlags["when"] = 2] = "when";
|
|
22
|
+
/**
|
|
23
|
+
* A 'Then' step definition binding.
|
|
24
|
+
*/
|
|
25
|
+
StepBindingFlags[StepBindingFlags["then"] = 4] = "then";
|
|
26
|
+
/**
|
|
27
|
+
* A 'Before' hook binding.
|
|
28
|
+
*/
|
|
29
|
+
StepBindingFlags[StepBindingFlags["before"] = 8] = "before";
|
|
30
|
+
/**
|
|
31
|
+
* An 'After' hook binding.
|
|
32
|
+
*/
|
|
33
|
+
StepBindingFlags[StepBindingFlags["after"] = 16] = "after";
|
|
34
|
+
/**
|
|
35
|
+
* An 'BeforeAll' hook binding
|
|
36
|
+
*/
|
|
37
|
+
StepBindingFlags[StepBindingFlags["beforeAll"] = 32] = "beforeAll";
|
|
38
|
+
/**
|
|
39
|
+
* An 'AfterAll' hook binding
|
|
40
|
+
*/
|
|
41
|
+
StepBindingFlags[StepBindingFlags["afterAll"] = 64] = "afterAll";
|
|
42
|
+
/**
|
|
43
|
+
* An 'BeforeStep' hook binding
|
|
44
|
+
*/
|
|
45
|
+
StepBindingFlags[StepBindingFlags["beforeStep"] = 128] = "beforeStep";
|
|
46
|
+
/**
|
|
47
|
+
* An 'AfterStep' hook binding
|
|
48
|
+
*/
|
|
49
|
+
StepBindingFlags[StepBindingFlags["afterStep"] = 256] = "afterStep";
|
|
50
|
+
/**
|
|
51
|
+
* All step definition bindings.
|
|
52
|
+
*/
|
|
53
|
+
StepBindingFlags[StepBindingFlags["StepDefinitions"] = 7] = "StepDefinitions";
|
|
54
|
+
/**
|
|
55
|
+
* All hook bindings.
|
|
56
|
+
*/
|
|
57
|
+
StepBindingFlags[StepBindingFlags["Hooks"] = 504] = "Hooks";
|
|
58
|
+
})(StepBindingFlags = exports.StepBindingFlags || (exports.StepBindingFlags = {}));
|
|
59
59
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1iaW5kaW5nLWZsYWdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3R5cGVzL3N0ZXAtYmluZGluZy1mbGFncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw0QkFBNEI7QUFDNUI7O0dBRUc7QUFDSCxJQUFZLGdCQWlFWDtBQWpFRCxXQUFZLGdCQUFnQjtJQUMzQjs7T0FFRztJQUNILHVEQUFRLENBQUE7SUFFUjs7T0FFRztJQUNILHlEQUFjLENBQUE7SUFFZDs7T0FFRztJQUNILHVEQUFhLENBQUE7SUFFYjs7T0FFRztJQUNILHVEQUFhLENBQUE7SUFFYjs7T0FFRztJQUNILDJEQUFlLENBQUE7SUFFZjs7T0FFRztJQUNILDBEQUFjLENBQUE7SUFFZDs7T0FFRztJQUNILGtFQUFrQixDQUFBO0lBRWxCOztPQUVHO0lBQ0gsZ0VBQWlCLENBQUE7SUFFakI7O09BRUc7SUFDSCxxRUFBbUIsQ0FBQTtJQUVuQjs7T0FFRztJQUNILG1FQUFrQixDQUFBO0lBRWxCOztPQUVHO0lBQ0gsNkVBQXdGLENBQUE7SUFFeEY7O09BRUc7SUFDSCwyREFLMkIsQ0FBQTtBQUM1QixDQUFDLEVBakVXLGdCQUFnQixHQUFoQix3QkFBZ0IsS0FBaEIsd0JBQWdCLFFBaUUzQiJ9
|