@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.
Files changed (99) hide show
  1. package/README.md +546 -544
  2. package/bin/cucumber-tsflow +1 -1
  3. package/lib/behave.d.ts +1 -1
  4. package/lib/behave.js +27 -27
  5. package/lib/cli/argv-parser.d.ts +24 -24
  6. package/lib/cli/argv-parser.js +103 -103
  7. package/lib/cli/index.d.ts +22 -22
  8. package/lib/cli/index.js +101 -96
  9. package/lib/cli/load-configuration.d.ts +20 -20
  10. package/lib/cli/load-configuration.js +92 -92
  11. package/lib/cli/run.d.ts +1 -1
  12. package/lib/cli/run.js +49 -44
  13. package/lib/cucumber/binding-decorator.d.ts +10 -10
  14. package/lib/cucumber/binding-decorator.js +180 -180
  15. package/lib/cucumber/binding-registry.d.ts +82 -82
  16. package/lib/cucumber/binding-registry.js +216 -218
  17. package/lib/cucumber/hook-decorators.d.ts +46 -46
  18. package/lib/cucumber/hook-decorators.js +102 -102
  19. package/lib/cucumber/managed-scenario-context.d.ts +21 -21
  20. package/lib/cucumber/managed-scenario-context.js +96 -95
  21. package/lib/cucumber/message-collector.d.ts +81 -80
  22. package/lib/cucumber/message-collector.js +251 -241
  23. package/lib/cucumber/parallel/coordinator.d.ts +79 -78
  24. package/lib/cucumber/parallel/coordinator.js +247 -228
  25. package/lib/cucumber/parallel/run-worker.d.ts +1 -1
  26. package/lib/cucumber/parallel/run-worker.js +31 -31
  27. package/lib/cucumber/parallel/worker.d.ts +30 -31
  28. package/lib/cucumber/parallel/worker.js +104 -104
  29. package/lib/cucumber/run-cucumber.d.ts +14 -14
  30. package/lib/cucumber/run-cucumber.js +117 -117
  31. package/lib/cucumber/runtime.d.ts +25 -25
  32. package/lib/cucumber/runtime.js +39 -39
  33. package/lib/cucumber/step-definition-decorators.d.ts +24 -24
  34. package/lib/cucumber/step-definition-decorators.js +91 -91
  35. package/lib/cucumber/utils.d.ts +16 -16
  36. package/lib/cucumber/utils.js +77 -77
  37. package/lib/esnode.js +19 -19
  38. package/lib/esvue.d.ts +1 -1
  39. package/lib/esvue.js +41 -41
  40. package/lib/formatters/behave-json-formatter.d.ts +49 -49
  41. package/lib/formatters/behave-json-formatter.js +75 -75
  42. package/lib/formatters/tsflow-snippet-syntax.d.ts +9 -9
  43. package/lib/formatters/tsflow-snippet-syntax.js +90 -93
  44. package/lib/gherkin/configuration.d.ts +30 -30
  45. package/lib/gherkin/configuration.js +26 -26
  46. package/lib/gherkin/gherkin-feature.d.ts +28 -28
  47. package/lib/gherkin/gherkin-feature.js +333 -335
  48. package/lib/gherkin/gherkin-manager.d.ts +29 -29
  49. package/lib/gherkin/gherkin-manager.js +114 -113
  50. package/lib/gherkin/models.d.ts +45 -45
  51. package/lib/gherkin/models.js +2 -2
  52. package/lib/index.d.ts +4 -4
  53. package/lib/index.js +22 -22
  54. package/lib/snippet.d.ts +1 -1
  55. package/lib/snippet.js +27 -27
  56. package/lib/transpilers/esbuild-transpiler.d.ts +4 -4
  57. package/lib/transpilers/esbuild-transpiler.js +19 -21
  58. package/lib/transpilers/esbuild.d.ts +12 -12
  59. package/lib/transpilers/esbuild.js +54 -54
  60. package/lib/transpilers/vue-sfc/compiler.d.ts +7 -7
  61. package/lib/transpilers/vue-sfc/compiler.js +21 -21
  62. package/lib/transpilers/vue-sfc/index.d.ts +23 -23
  63. package/lib/transpilers/vue-sfc/index.js +47 -45
  64. package/lib/transpilers/vue-sfc/main.d.ts +8 -8
  65. package/lib/transpilers/vue-sfc/main.js +248 -248
  66. package/lib/transpilers/vue-sfc/script.d.ts +5 -5
  67. package/lib/transpilers/vue-sfc/script.js +41 -41
  68. package/lib/transpilers/vue-sfc/template.d.ts +8 -8
  69. package/lib/transpilers/vue-sfc/template.js +101 -101
  70. package/lib/transpilers/vue-sfc/types.d.ts +55 -55
  71. package/lib/transpilers/vue-sfc/types.js +2 -2
  72. package/lib/transpilers/vue-sfc/utils/descriptorCache.d.ts +13 -13
  73. package/lib/transpilers/vue-sfc/utils/descriptorCache.js +67 -67
  74. package/lib/transpilers/vue-sfc/utils/error.d.ts +3 -3
  75. package/lib/transpilers/vue-sfc/utils/error.js +22 -22
  76. package/lib/transpilers/vue-sfc/utils/query.d.ts +13 -13
  77. package/lib/transpilers/vue-sfc/utils/query.js +35 -35
  78. package/lib/tsnode.js +17 -17
  79. package/lib/tsvue.d.ts +1 -1
  80. package/lib/tsvue.js +39 -39
  81. package/lib/types/scenario-context.d.ts +16 -16
  82. package/lib/types/scenario-context.js +17 -17
  83. package/lib/types/scenario-info.d.ts +16 -16
  84. package/lib/types/scenario-info.js +23 -21
  85. package/lib/types/step-binding-flags.d.ts +53 -53
  86. package/lib/types/step-binding-flags.js +58 -58
  87. package/lib/types/step-binding.d.ts +50 -50
  88. package/lib/types/step-binding.js +17 -17
  89. package/lib/types/types.d.ts +21 -21
  90. package/lib/types/types.js +2 -2
  91. package/lib/utils/helpers.d.ts +6 -6
  92. package/lib/utils/helpers.js +17 -17
  93. package/lib/utils/logger.d.ts +3 -3
  94. package/lib/utils/logger.js +29 -29
  95. package/lib/utils/our-callsite.d.ts +27 -27
  96. package/lib/utils/our-callsite.js +73 -71
  97. package/lib/version.d.ts +1 -1
  98. package/lib/version.js +5 -5
  99. 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 | undefined) => ParsedFeature;
6
- loadFeatures: (globPattern: string, options?: Options | undefined) => 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
- }
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
+ }