@lynxwall/cucumber-tsflow 5.1.3 → 6.0.2
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 +546 -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 +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 +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 +58 -58
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setJestCucumberConfiguration = exports.getJestCucumberConfiguration = exports.defaultConfiguration = exports.defaultErrorSettings = void 0;
|
|
4
|
-
exports.defaultErrorSettings = {
|
|
5
|
-
scenariosMustMatchFeatureFile: true,
|
|
6
|
-
stepsMustMatchFeatureFile: true,
|
|
7
|
-
allowScenariosNotInFeatureFile: false
|
|
8
|
-
};
|
|
9
|
-
exports.defaultConfiguration = {
|
|
10
|
-
tagFilter: undefined,
|
|
11
|
-
scenarioNameTemplate: undefined,
|
|
12
|
-
errors: exports.defaultErrorSettings
|
|
13
|
-
};
|
|
14
|
-
let globalConfiguration = {};
|
|
15
|
-
const getJestCucumberConfiguration = (options) => {
|
|
16
|
-
const mergedOptions = { ...exports.defaultConfiguration, ...globalConfiguration, ...(options || {}) };
|
|
17
|
-
if (mergedOptions.errors === true) {
|
|
18
|
-
mergedOptions.errors = exports.defaultErrorSettings;
|
|
19
|
-
}
|
|
20
|
-
return mergedOptions;
|
|
21
|
-
};
|
|
22
|
-
exports.getJestCucumberConfiguration = getJestCucumberConfiguration;
|
|
23
|
-
const setJestCucumberConfiguration = (options) => {
|
|
24
|
-
globalConfiguration = options;
|
|
25
|
-
};
|
|
26
|
-
exports.setJestCucumberConfiguration = setJestCucumberConfiguration;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setJestCucumberConfiguration = exports.getJestCucumberConfiguration = exports.defaultConfiguration = exports.defaultErrorSettings = void 0;
|
|
4
|
+
exports.defaultErrorSettings = {
|
|
5
|
+
scenariosMustMatchFeatureFile: true,
|
|
6
|
+
stepsMustMatchFeatureFile: true,
|
|
7
|
+
allowScenariosNotInFeatureFile: false
|
|
8
|
+
};
|
|
9
|
+
exports.defaultConfiguration = {
|
|
10
|
+
tagFilter: undefined,
|
|
11
|
+
scenarioNameTemplate: undefined,
|
|
12
|
+
errors: exports.defaultErrorSettings
|
|
13
|
+
};
|
|
14
|
+
let globalConfiguration = {};
|
|
15
|
+
const getJestCucumberConfiguration = (options) => {
|
|
16
|
+
const mergedOptions = { ...exports.defaultConfiguration, ...globalConfiguration, ...(options || {}) };
|
|
17
|
+
if (mergedOptions.errors === true) {
|
|
18
|
+
mergedOptions.errors = exports.defaultErrorSettings;
|
|
19
|
+
}
|
|
20
|
+
return mergedOptions;
|
|
21
|
+
};
|
|
22
|
+
exports.getJestCucumberConfiguration = getJestCucumberConfiguration;
|
|
23
|
+
const setJestCucumberConfiguration = (options) => {
|
|
24
|
+
globalConfiguration = options;
|
|
25
|
+
};
|
|
26
|
+
exports.setJestCucumberConfiguration = setJestCucumberConfiguration;
|
|
27
27
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9naGVya2luL2NvbmZpZ3VyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBb0JhLFFBQUEsb0JBQW9CLEdBQUc7SUFDbkMsNkJBQTZCLEVBQUUsSUFBSTtJQUNuQyx5QkFBeUIsRUFBRSxJQUFJO0lBQy9CLDhCQUE4QixFQUFFLEtBQUs7Q0FDckMsQ0FBQztBQUVXLFFBQUEsb0JBQW9CLEdBQVk7SUFDNUMsU0FBUyxFQUFFLFNBQVM7SUFDcEIsb0JBQW9CLEVBQUUsU0FBUztJQUMvQixNQUFNLEVBQUUsNEJBQW9CO0NBQzVCLENBQUM7QUFFRixJQUFJLG1CQUFtQixHQUFZLEVBQWEsQ0FBQztBQUUxQyxNQUFNLDRCQUE0QixHQUFHLENBQUMsT0FBaUIsRUFBRSxFQUFFO0lBQ2pFLE1BQU0sYUFBYSxHQUFHLEVBQUUsR0FBRyw0QkFBb0IsRUFBRSxHQUFHLG1CQUFtQixFQUFFLEdBQUcsQ0FBQyxPQUFPLElBQUksRUFBRSxDQUFDLEVBQUUsQ0FBQztJQUU5RixJQUFJLGFBQWEsQ0FBQyxNQUFNLEtBQUssSUFBSSxFQUFFO1FBQ2xDLGFBQWEsQ0FBQyxNQUFNLEdBQUcsNEJBQW9CLENBQUM7S0FDNUM7SUFFRCxPQUFPLGFBQWEsQ0FBQztBQUN0QixDQUFDLENBQUM7QUFSVyxRQUFBLDRCQUE0QixnQ0FRdkM7QUFFSyxNQUFNLDRCQUE0QixHQUFHLENBQUMsT0FBZ0IsRUFBRSxFQUFFO0lBQ2hFLG1CQUFtQixHQUFHLE9BQU8sQ0FBQztBQUMvQixDQUFDLENBQUM7QUFGVyxRQUFBLDRCQUE0QixnQ0FFdkMifQ==
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Options } from './configuration';
|
|
2
|
-
import { ParsedFeature } from './models';
|
|
3
|
-
export default class GherkinFeature {
|
|
4
|
-
private cwd;
|
|
5
|
-
loadFeature: (featureFilePath: string, options?: Options
|
|
6
|
-
loadFeatures: (globPattern: string, options?: Options
|
|
7
|
-
private parseFeature;
|
|
8
|
-
private parseDataTableRow;
|
|
9
|
-
private parseDataTable;
|
|
10
|
-
private parseStepArgument;
|
|
11
|
-
private parseStep;
|
|
12
|
-
private parseSteps;
|
|
13
|
-
private parseTags;
|
|
14
|
-
private parseScenario;
|
|
15
|
-
private parseScenarioOutlineExampleSteps;
|
|
16
|
-
private getOutlineDynamicTitle;
|
|
17
|
-
private parseScenarioOutlineExample;
|
|
18
|
-
private parseScenarioOutlineExampleSet;
|
|
19
|
-
private parseScenarioOutlineExampleSets;
|
|
20
|
-
private parseScenarioOutline;
|
|
21
|
-
private parseScenarios;
|
|
22
|
-
private parseScenarioOutlines;
|
|
23
|
-
private collapseBackgrounds;
|
|
24
|
-
private parseBackgrounds;
|
|
25
|
-
private collapseRulesAndBackgrounds;
|
|
26
|
-
private createTranslationMap;
|
|
27
|
-
private translateKeywords;
|
|
28
|
-
}
|
|
1
|
+
import { Options } from './configuration';
|
|
2
|
+
import { ParsedFeature } from './models';
|
|
3
|
+
export default class GherkinFeature {
|
|
4
|
+
private cwd;
|
|
5
|
+
loadFeature: (featureFilePath: string, options?: Options) => ParsedFeature;
|
|
6
|
+
loadFeatures: (globPattern: string, options?: Options) => ParsedFeature[];
|
|
7
|
+
private parseFeature;
|
|
8
|
+
private parseDataTableRow;
|
|
9
|
+
private parseDataTable;
|
|
10
|
+
private parseStepArgument;
|
|
11
|
+
private parseStep;
|
|
12
|
+
private parseSteps;
|
|
13
|
+
private parseTags;
|
|
14
|
+
private parseScenario;
|
|
15
|
+
private parseScenarioOutlineExampleSteps;
|
|
16
|
+
private getOutlineDynamicTitle;
|
|
17
|
+
private parseScenarioOutlineExample;
|
|
18
|
+
private parseScenarioOutlineExampleSet;
|
|
19
|
+
private parseScenarioOutlineExampleSets;
|
|
20
|
+
private parseScenarioOutline;
|
|
21
|
+
private parseScenarios;
|
|
22
|
+
private parseScenarioOutlines;
|
|
23
|
+
private collapseBackgrounds;
|
|
24
|
+
private parseBackgrounds;
|
|
25
|
+
private collapseRulesAndBackgrounds;
|
|
26
|
+
private createTranslationMap;
|
|
27
|
+
private translateKeywords;
|
|
28
|
+
}
|