@cucumber/cucumber 8.11.1 → 9.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/lib/formatter/step_definition_snippet_builder/javascript_snippet_syntax.js +0 -3
- package/lib/formatter/step_definition_snippet_builder/javascript_snippet_syntax.js.map +1 -1
- package/lib/formatter/step_definition_snippet_builder/snippet_syntax.d.ts +0 -1
- package/lib/formatter/step_definition_snippet_builder/snippet_syntax.js +0 -1
- package/lib/formatter/step_definition_snippet_builder/snippet_syntax.js.map +1 -1
- package/lib/index.d.ts +2 -5
- package/lib/index.js +3 -6
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib/wrapper.mjs +1 -1
- package/package.json +13 -3
|
@@ -11,9 +11,6 @@ class JavaScriptSnippetSyntax {
|
|
|
11
11
|
if (this.snippetInterface === snippet_syntax_1.SnippetInterface.AsyncAwait) {
|
|
12
12
|
functionKeyword = 'async ' + functionKeyword;
|
|
13
13
|
}
|
|
14
|
-
else if (this.snippetInterface === snippet_syntax_1.SnippetInterface.Generator) {
|
|
15
|
-
functionKeyword += '*';
|
|
16
|
-
}
|
|
17
14
|
let implementation;
|
|
18
15
|
if (this.snippetInterface === snippet_syntax_1.SnippetInterface.Callback) {
|
|
19
16
|
implementation = `${CALLBACK_NAME}(null, 'pending');`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"javascript_snippet_syntax.js","sourceRoot":"","sources":["../../../src/formatter/step_definition_snippet_builder/javascript_snippet_syntax.ts"],"names":[],"mappings":";;AACA,qDAIyB;AAEzB,MAAM,aAAa,GAAG,UAAU,CAAA;AAEhC,MAAqB,uBAAuB;IAG1C,YAAY,gBAAkC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;IAC1C,CAAC;IAED,KAAK,CAAC,EACJ,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,GACS;QAC3B,IAAI,eAAe,GAAG,WAAW,CAAA;QACjC,IAAI,IAAI,CAAC,gBAAgB,KAAK,iCAAgB,CAAC,UAAU,EAAE;YACzD,eAAe,GAAG,QAAQ,GAAG,eAAe,CAAA;SAC7C;
|
|
1
|
+
{"version":3,"file":"javascript_snippet_syntax.js","sourceRoot":"","sources":["../../../src/formatter/step_definition_snippet_builder/javascript_snippet_syntax.ts"],"names":[],"mappings":";;AACA,qDAIyB;AAEzB,MAAM,aAAa,GAAG,UAAU,CAAA;AAEhC,MAAqB,uBAAuB;IAG1C,YAAY,gBAAkC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;IAC1C,CAAC;IAED,KAAK,CAAC,EACJ,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,GACS;QAC3B,IAAI,eAAe,GAAG,WAAW,CAAA;QACjC,IAAI,IAAI,CAAC,gBAAgB,KAAK,iCAAgB,CAAC,UAAU,EAAE;YACzD,eAAe,GAAG,QAAQ,GAAG,eAAe,CAAA;SAC7C;QAED,IAAI,cAAsB,CAAA;QAC1B,IAAI,IAAI,CAAC,gBAAgB,KAAK,iCAAgB,CAAC,QAAQ,EAAE;YACvD,cAAc,GAAG,GAAG,aAAa,oBAAoB,CAAA;SACtD;aAAM,IAAI,IAAI,CAAC,gBAAgB,KAAK,iCAAgB,CAAC,OAAO,EAAE;YAC7D,cAAc,GAAG,oCAAoC,CAAA;SACtD;aAAM;YACL,cAAc,GAAG,mBAAmB,CAAA;SACrC;QAED,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,GAAG,CAChD,CAAC,mBAAmB,EAAE,KAAK,EAAE,EAAE;YAC7B,MAAM,MAAM,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;YACvC,MAAM,iBAAiB,GACrB,mBAAmB,CAAC,cAAc,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;YAC/D,IAAI,IAAI,CAAC,gBAAgB,KAAK,iCAAgB,CAAC,QAAQ,EAAE;gBACvD,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;aACtC;YACD,OAAO,GAAG,MAAM,GAAG,YAAY,KAAK,IAAI,CAAC,uBAAuB,CAC9D,mBAAmB,CACpB,MAAM,eAAe,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAA;QAC/D,CAAC,CACF,CAAA;QAED,OAAO,CACL,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,OAAO,IAAI;YAChD,KAAK,cAAc,IAAI;YACvB,KAAK,CACN,CAAA;IACH,CAAC;IAEO,uBAAuB,CAAC,mBAAwC;QACtE,IAAI,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAA;QACvC,iEAAiE;QACjE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACtC,8DAA8D;QAC9D,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACpC,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAxDD,0CAwDC","sourcesContent":["import { GeneratedExpression } from '@cucumber/cucumber-expressions'\nimport {\n ISnippetSnytax,\n ISnippetSyntaxBuildOptions,\n SnippetInterface,\n} from './snippet_syntax'\n\nconst CALLBACK_NAME = 'callback'\n\nexport default class JavaScriptSnippetSyntax implements ISnippetSnytax {\n private readonly snippetInterface: SnippetInterface\n\n constructor(snippetInterface: SnippetInterface) {\n this.snippetInterface = snippetInterface\n }\n\n build({\n comment,\n generatedExpressions,\n functionName,\n stepParameterNames,\n }: ISnippetSyntaxBuildOptions): string {\n let functionKeyword = 'function '\n if (this.snippetInterface === SnippetInterface.AsyncAwait) {\n functionKeyword = 'async ' + functionKeyword\n }\n\n let implementation: string\n if (this.snippetInterface === SnippetInterface.Callback) {\n implementation = `${CALLBACK_NAME}(null, 'pending');`\n } else if (this.snippetInterface === SnippetInterface.Promise) {\n implementation = \"return Promise.resolve('pending');\"\n } else {\n implementation = \"return 'pending';\"\n }\n\n const definitionChoices = generatedExpressions.map(\n (generatedExpression, index) => {\n const prefix = index === 0 ? '' : '// '\n const allParameterNames =\n generatedExpression.parameterNames.concat(stepParameterNames)\n if (this.snippetInterface === SnippetInterface.Callback) {\n allParameterNames.push(CALLBACK_NAME)\n }\n return `${prefix + functionName}('${this.escapeSpecialCharacters(\n generatedExpression\n )}', ${functionKeyword}(${allParameterNames.join(', ')}) {\\n`\n }\n )\n\n return (\n `${definitionChoices.join('')} // ${comment}\\n` +\n ` ${implementation}\\n` +\n '});'\n )\n }\n\n private escapeSpecialCharacters(generatedExpression: GeneratedExpression) {\n let source = generatedExpression.source\n // double up any backslashes because we're in a javascript string\n source = source.replace(/\\\\/g, '\\\\\\\\')\n // escape any single quotes because that's our quote delimiter\n source = source.replace(/'/g, \"\\\\'\")\n return source\n }\n}\n"]}
|
|
@@ -5,7 +5,6 @@ var SnippetInterface;
|
|
|
5
5
|
(function (SnippetInterface) {
|
|
6
6
|
SnippetInterface["AsyncAwait"] = "async-await";
|
|
7
7
|
SnippetInterface["Callback"] = "callback";
|
|
8
|
-
SnippetInterface["Generator"] = "generator";
|
|
9
8
|
SnippetInterface["Promise"] = "promise";
|
|
10
9
|
SnippetInterface["Synchronous"] = "synchronous";
|
|
11
10
|
})(SnippetInterface = exports.SnippetInterface || (exports.SnippetInterface = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippet_syntax.js","sourceRoot":"","sources":["../../../src/formatter/step_definition_snippet_builder/snippet_syntax.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"snippet_syntax.js","sourceRoot":"","sources":["../../../src/formatter/step_definition_snippet_builder/snippet_syntax.ts"],"names":[],"mappings":";;;AAEA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,8CAA0B,CAAA;IAC1B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,+CAA2B,CAAA;AAC7B,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B","sourcesContent":["import { GeneratedExpression } from '@cucumber/cucumber-expressions'\n\nexport enum SnippetInterface {\n AsyncAwait = 'async-await',\n Callback = 'callback',\n Promise = 'promise',\n Synchronous = 'synchronous',\n}\n\nexport interface ISnippetSyntaxBuildOptions {\n comment: string\n functionName: string\n generatedExpressions: readonly GeneratedExpression[]\n stepParameterNames: string[]\n}\n\nexport interface ISnippetSnytax {\n build: (options: ISnippetSyntaxBuildOptions) => string\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const AfterStep: (<WorldType = import("./support_code_library_bui
|
|
|
25
25
|
export declare const Before: (<WorldType = import("./support_code_library_builder/world").IWorld<any>>(code: import("./support_code_library_builder/types").TestCaseHookFunction<WorldType>) => void) & (<WorldType_1 = import("./support_code_library_builder/world").IWorld<any>>(tags: string, code: import("./support_code_library_builder/types").TestCaseHookFunction<WorldType_1>) => void) & (<WorldType_2 = import("./support_code_library_builder/world").IWorld<any>>(options: import("./support_code_library_builder/types").IDefineTestCaseHookOptions, code: import("./support_code_library_builder/types").TestCaseHookFunction<WorldType_2>) => void);
|
|
26
26
|
export declare const BeforeAll: ((code: Function) => void) & ((options: import("./support_code_library_builder/types").IDefineTestRunHookOptions, code: Function) => void);
|
|
27
27
|
export declare const BeforeStep: (<WorldType = import("./support_code_library_builder/world").IWorld<any>>(code: import("./support_code_library_builder/types").TestStepHookFunction<WorldType>) => void) & (<WorldType_1 = import("./support_code_library_builder/world").IWorld<any>>(tags: string, code: import("./support_code_library_builder/types").TestStepHookFunction<WorldType_1>) => void) & (<WorldType_2 = import("./support_code_library_builder/world").IWorld<any>>(options: import("./support_code_library_builder/types").IDefineTestStepHookOptions, code: import("./support_code_library_builder/types").TestStepHookFunction<WorldType_2>) => void);
|
|
28
|
+
export declare const defineStep: import("./support_code_library_builder/types").IDefineStep;
|
|
28
29
|
export declare const defineParameterType: (options: import("./support_code_library_builder/types").IParameterTypeDefinition<any>) => void;
|
|
29
30
|
export declare const Given: import("./support_code_library_builder/types").IDefineStep;
|
|
30
31
|
export declare const setDefaultTimeout: (milliseconds: number) => void;
|
|
@@ -42,10 +43,6 @@ export { wrapPromiseWithTimeout } from './time';
|
|
|
42
43
|
* @deprecated use `runCucumber` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
43
44
|
*/
|
|
44
45
|
export declare const Cli: typeof _Cli;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated use `Given`, `When` or `Then` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
47
|
-
*/
|
|
48
|
-
export declare const defineStep: import("./support_code_library_builder/types").IDefineStep;
|
|
49
46
|
/**
|
|
50
47
|
* @deprecated use `loadSources` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
51
48
|
*/
|
|
@@ -55,7 +52,7 @@ export declare const parseGherkinMessageStream: typeof cliHelpers.parseGherkinMe
|
|
|
55
52
|
*/
|
|
56
53
|
export declare const PickleFilter: typeof _PickleFilter;
|
|
57
54
|
/**
|
|
58
|
-
* @deprecated use `
|
|
55
|
+
* @deprecated use `runCucumber` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
59
56
|
*/
|
|
60
57
|
export declare const Runtime: typeof _Runtime;
|
|
61
58
|
export { INewRuntimeOptions, IRuntimeOptions } from './runtime';
|
package/lib/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Runtime = exports.PickleFilter = exports.parseGherkinMessageStream = exports.
|
|
29
|
+
exports.Runtime = exports.PickleFilter = exports.parseGherkinMessageStream = exports.Cli = exports.wrapPromiseWithTimeout = exports.Status = exports.parallelCanAssignHelpers = exports.World = exports.When = exports.Then = exports.setParallelCanAssign = exports.setWorldConstructor = exports.setDefinitionFunctionWrapper = exports.setDefaultTimeout = exports.Given = exports.defineParameterType = exports.defineStep = exports.BeforeStep = exports.BeforeAll = exports.Before = exports.AfterStep = exports.AfterAll = exports.After = exports.formatterHelpers = exports.UsageJsonFormatter = exports.UsageFormatter = exports.SummaryFormatter = exports.SnippetsFormatter = exports.RerunFormatter = exports.ProgressFormatter = exports.JsonFormatter = exports.FormatterBuilder = exports.Formatter = exports.version = exports.TestCaseHookDefinition = exports.DataTable = exports.supportCodeLibraryBuilder = void 0;
|
|
30
30
|
const cli_1 = __importDefault(require("./cli"));
|
|
31
31
|
const cliHelpers = __importStar(require("./cli/helpers"));
|
|
32
32
|
const formatterHelpers = __importStar(require("./formatter/helpers"));
|
|
@@ -74,6 +74,7 @@ exports.AfterStep = methods.AfterStep;
|
|
|
74
74
|
exports.Before = methods.Before;
|
|
75
75
|
exports.BeforeAll = methods.BeforeAll;
|
|
76
76
|
exports.BeforeStep = methods.BeforeStep;
|
|
77
|
+
exports.defineStep = methods.defineStep;
|
|
77
78
|
exports.defineParameterType = methods.defineParameterType;
|
|
78
79
|
exports.Given = methods.Given;
|
|
79
80
|
exports.setDefaultTimeout = methods.setDefaultTimeout;
|
|
@@ -93,10 +94,6 @@ Object.defineProperty(exports, "wrapPromiseWithTimeout", { enumerable: true, get
|
|
|
93
94
|
* @deprecated use `runCucumber` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
94
95
|
*/
|
|
95
96
|
exports.Cli = (0, util_1.deprecate)(cli_1.default, '`Cli` is deprecated, use `runCucumber` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md');
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated use `Given`, `When` or `Then` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
98
|
-
*/
|
|
99
|
-
exports.defineStep = (0, util_1.deprecate)(methods.defineStep, '`defineStep` is deprecated, use `Given`, `When` or `Then` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md');
|
|
100
97
|
/**
|
|
101
98
|
* @deprecated use `loadSources` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
102
99
|
*/
|
|
@@ -106,7 +103,7 @@ exports.parseGherkinMessageStream = (0, util_1.deprecate)(cliHelpers.parseGherki
|
|
|
106
103
|
*/
|
|
107
104
|
exports.PickleFilter = (0, util_1.deprecate)(pickle_filter_1.default, '`PickleFilter` is deprecated, use `loadSources` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md');
|
|
108
105
|
/**
|
|
109
|
-
* @deprecated use `
|
|
106
|
+
* @deprecated use `runCucumber` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>
|
|
110
107
|
*/
|
|
111
108
|
exports.Runtime = (0, util_1.deprecate)(runtime_1.default, '`Runtime` is deprecated, use `runCucumber` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md');
|
|
112
109
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAuC;AACvC,0DAA2C;AAC3C,sEAAuD;AAwB9C,4CAAgB;AAvBzB,oEAA0D;AAC1D,qHAAsG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAuC;AACvC,0DAA2C;AAC3C,sEAAuD;AAwB9C,4CAAgB;AAvBzB,oEAA0D;AAC1D,qHAAsG;AA8C7F,4DAAwB;AA7CjC,wDAA+C;AAC/C,kGAAsE;AACtE,6DAA8C;AAC9C,+BAAgC;AAEhC,YAAY;AACZ,+EAAqF;AAA5E,0JAAA,OAAO,OAA6B;AAC7C,kDAA0D;AAAjD,wHAAA,OAAO,OAAa;AAC7B,gFAAsF;AAA7E,oJAAA,OAAO,OAA0B;AAC1C,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAEhB,aAAa;AACb,yCAAqE;AAA5D,uHAAA,OAAO,OAAa;AAC7B,+CAAiE;AAAxD,4HAAA,OAAO,OAAoB;AACpC,6DAAqE;AAA5D,gIAAA,OAAO,OAAiB;AACjC,qEAA6E;AAApE,wIAAA,OAAO,OAAqB;AACrC,+DAAuE;AAA9D,kIAAA,OAAO,OAAkB;AAClC,qEAA6E;AAApE,wIAAA,OAAO,OAAqB;AACrC,mEAA2E;AAAlE,sIAAA,OAAO,OAAoB;AACpC,+DAAuE;AAA9D,kIAAA,OAAO,OAAkB;AAClC,yEAAgF;AAAvE,2IAAA,OAAO,OAAsB;AAGtC,yBAAyB;AACzB,MAAM,EAAE,OAAO,EAAE,GAAG,sCAAyB,CAAA;AAChC,QAAA,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;AACrB,QAAA,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;AAC3B,QAAA,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;AAC7B,QAAA,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;AACvB,QAAA,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;AAC7B,QAAA,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;AAC/B,QAAA,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;AAC/B,QAAA,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAA;AACjD,QAAA,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;AACrB,QAAA,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAC7C,QAAA,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAA;AACnE,QAAA,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAA;AACjD,QAAA,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAA;AACnD,QAAA,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;AACnB,QAAA,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;AAChC,8DAI6C;AAH3C,+GAAA,OAAO,OAAS;AAUL,QAAA,MAAM,GAAG,QAAQ,CAAC,oBAAoB,CAAA;AAEnD,eAAe;AACf,+BAA+C;AAAtC,8GAAA,sBAAsB,OAAA;AAE/B,aAAa;AACb;;GAEG;AACU,QAAA,GAAG,GAAG,IAAA,gBAAS,EAC1B,aAAI,EACJ,4HAA4H,CAC7H,CAAA;AACD;;GAEG;AACU,QAAA,yBAAyB,GAAG,IAAA,gBAAS,EAChD,UAAU,CAAC,yBAAyB,EACpC,kJAAkJ,CACnJ,CAAA;AACD;;GAEG;AACU,QAAA,YAAY,GAAG,IAAA,gBAAS,EACnC,uBAAa,EACb,qIAAqI,CACtI,CAAA;AACD;;GAEG;AACU,QAAA,OAAO,GAAG,IAAA,gBAAS,EAC9B,iBAAQ,EACR,gIAAgI,CACjI,CAAA","sourcesContent":["import { default as _Cli } from './cli'\nimport * as cliHelpers from './cli/helpers'\nimport * as formatterHelpers from './formatter/helpers'\nimport { default as _PickleFilter } from './pickle_filter'\nimport * as parallelCanAssignHelpers from './support_code_library_builder/parallel_can_assign_helpers'\nimport { default as _Runtime } from './runtime'\nimport supportCodeLibraryBuilder from './support_code_library_builder'\nimport * as messages from '@cucumber/messages'\nimport { deprecate } from 'util'\n\n// Top level\nexport { default as supportCodeLibraryBuilder } from './support_code_library_builder'\nexport { default as DataTable } from './models/data_table'\nexport { default as TestCaseHookDefinition } from './models/test_case_hook_definition'\nexport { version } from './version'\n\n// Formatters\nexport { default as Formatter, IFormatterOptions } from './formatter'\nexport { default as FormatterBuilder } from './formatter/builder'\nexport { default as JsonFormatter } from './formatter/json_formatter'\nexport { default as ProgressFormatter } from './formatter/progress_formatter'\nexport { default as RerunFormatter } from './formatter/rerun_formatter'\nexport { default as SnippetsFormatter } from './formatter/snippets_formatter'\nexport { default as SummaryFormatter } from './formatter/summary_formatter'\nexport { default as UsageFormatter } from './formatter/usage_formatter'\nexport { default as UsageJsonFormatter } from './formatter/usage_json_formatter'\nexport { formatterHelpers }\n\n// Support Code Functions\nconst { methods } = supportCodeLibraryBuilder\nexport const After = methods.After\nexport const AfterAll = methods.AfterAll\nexport const AfterStep = methods.AfterStep\nexport const Before = methods.Before\nexport const BeforeAll = methods.BeforeAll\nexport const BeforeStep = methods.BeforeStep\nexport const defineStep = methods.defineStep\nexport const defineParameterType = methods.defineParameterType\nexport const Given = methods.Given\nexport const setDefaultTimeout = methods.setDefaultTimeout\nexport const setDefinitionFunctionWrapper = methods.setDefinitionFunctionWrapper\nexport const setWorldConstructor = methods.setWorldConstructor\nexport const setParallelCanAssign = methods.setParallelCanAssign\nexport const Then = methods.Then\nexport const When = methods.When\nexport {\n default as World,\n IWorld,\n IWorldOptions,\n} from './support_code_library_builder/world'\nexport { parallelCanAssignHelpers }\n\nexport {\n ITestCaseHookParameter,\n ITestStepHookParameter,\n} from './support_code_library_builder/types'\nexport const Status = messages.TestStepResultStatus\n\n// Time helpers\nexport { wrapPromiseWithTimeout } from './time'\n\n// Deprecated\n/**\n * @deprecated use `runCucumber` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>\n */\nexport const Cli = deprecate(\n _Cli,\n '`Cli` is deprecated, use `runCucumber` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md'\n)\n/**\n * @deprecated use `loadSources` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>\n */\nexport const parseGherkinMessageStream = deprecate(\n cliHelpers.parseGherkinMessageStream,\n '`parseGherkinMessageStream` is deprecated, use `loadSources` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md'\n)\n/**\n * @deprecated use `loadSources` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>\n */\nexport const PickleFilter = deprecate(\n _PickleFilter,\n '`PickleFilter` is deprecated, use `loadSources` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md'\n)\n/**\n * @deprecated use `runCucumber` instead; see <https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md>\n */\nexport const Runtime = deprecate(\n _Runtime,\n '`Runtime` is deprecated, use `runCucumber` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md'\n)\nexport { INewRuntimeOptions, IRuntimeOptions } from './runtime'\n"]}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "9.0.0";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,OAAO,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '9.0.0'\n"]}
|
package/lib/wrapper.mjs
CHANGED
|
@@ -23,6 +23,7 @@ export const AfterStep = cucumber.AfterStep
|
|
|
23
23
|
export const Before = cucumber.Before
|
|
24
24
|
export const BeforeAll = cucumber.BeforeAll
|
|
25
25
|
export const BeforeStep = cucumber.BeforeStep
|
|
26
|
+
export const defineStep = cucumber.defineStep
|
|
26
27
|
export const defineParameterType = cucumber.defineParameterType
|
|
27
28
|
export const Given = cucumber.Given
|
|
28
29
|
export const setDefaultTimeout = cucumber.setDefaultTimeout
|
|
@@ -37,7 +38,6 @@ export const wrapPromiseWithTimeout = cucumber.wrapPromiseWithTimeout
|
|
|
37
38
|
|
|
38
39
|
// Deprecated
|
|
39
40
|
export const Cli = cucumber.Cli
|
|
40
|
-
export const defineStep = cucumber.defineStep
|
|
41
41
|
export const parseGherkinMessageStream = cucumber.parseGherkinMessageStream
|
|
42
42
|
export const PickleFilter = cucumber.PickleFilter
|
|
43
43
|
export const Runtime = cucumber.Runtime
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"gherkin",
|
|
9
9
|
"tests"
|
|
10
10
|
],
|
|
11
|
-
"version": "
|
|
11
|
+
"version": "9.0.0",
|
|
12
12
|
"homepage": "https://github.com/cucumber/cucumber-js",
|
|
13
13
|
"author": "Julien Biezemans <jb@jbpros.com>",
|
|
14
14
|
"contributors": [
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"Diego Di Mauro <hurrikam@users.noreply.github.com>",
|
|
47
47
|
"Dmitry Shirokov <deadrunk@gmail.com>",
|
|
48
48
|
"Dmytro Shpakovskyi <Marketionist@users.noreply.github.com>",
|
|
49
|
+
"Douglas Eggleton (https://github.com/douglaseggleton)",
|
|
49
50
|
"Eddie Loeffen <eddieloeffen@gmail.com>",
|
|
50
51
|
"efokschaner <eddyaod@gmail.com>",
|
|
51
52
|
"Elwyn <elwyn@L1.co.nz>",
|
|
@@ -64,7 +65,9 @@
|
|
|
64
65
|
"Izhaki <roey@gefri.org>",
|
|
65
66
|
"Jan Molak <jan.molak@smartcodeltd.co.uk>",
|
|
66
67
|
"Jan-Eric Duden <jeduden@gmail.com>",
|
|
68
|
+
"Jaryk (https://github.com/Ugzuzg)",
|
|
67
69
|
"Jayson Smith <github@nes.33mail.com>",
|
|
70
|
+
"Jeff Tian (https://github.com/Jeff-Tian)",
|
|
68
71
|
"Jesse Harlin <harlinjesse@gmail.com>",
|
|
69
72
|
"João Guilherme Farias Duda <jgfd@cin.ufpe.br>",
|
|
70
73
|
"Joaquín Sorianello <joac@users.noreply.github.com>",
|
|
@@ -82,6 +85,7 @@
|
|
|
82
85
|
"Julian <JuloWaks@users.noreply.github.com>",
|
|
83
86
|
"Julian <microweb10@gmail.com>",
|
|
84
87
|
"Julien Biezemans <jb@jbpros.com>",
|
|
88
|
+
"Julien Gonzalez (https://github.com/customcommander)",
|
|
85
89
|
"Karine Pires <karine.pires@alterway.fr>",
|
|
86
90
|
"Kārlis Amoliņš <karlis.amolins.5@gmail.com>",
|
|
87
91
|
"Karthik Viswanath <karthik.viswanath-contractor@adp.com>",
|
|
@@ -94,6 +98,7 @@
|
|
|
94
98
|
"Kushal Pisavadia",
|
|
95
99
|
"Kyle Moore <kyledmoore@gmail.com>",
|
|
96
100
|
"Leonardo <mondloslp@gmail.com>",
|
|
101
|
+
"Long Nguyen (https://github.com/zcmgyu)",
|
|
97
102
|
"lopesc <lopesc@users.noreply.github.com>",
|
|
98
103
|
"Lucas Cimon <lucas.cimon@gmail.com>",
|
|
99
104
|
"Ludek",
|
|
@@ -110,9 +115,11 @@
|
|
|
110
115
|
"Martin Delille <martin@phonations.com>",
|
|
111
116
|
"Máté Karácsony <k_mate@inf.elte.hu>",
|
|
112
117
|
"Mateusz Derks <mateusz.derks@schibsted.pl>",
|
|
118
|
+
"Matt Travi (https://github.com/travi)",
|
|
113
119
|
"Matteo Collina <matteo.collina@gmail.com>",
|
|
114
120
|
"Maxim Koretskiy <mr.green.tv@gmail.com>",
|
|
115
121
|
"mgonnet <gonnet.matias@gmail.com>",
|
|
122
|
+
"Michael Lloyd Morris (https://github.com/michael-lloyd-morris)",
|
|
116
123
|
"Michael Zedeler <michael@zedeler.dk>",
|
|
117
124
|
"Miika Hänninen <miika.hanninen@gmail.com>",
|
|
118
125
|
"nebehr <thorgeir@tut.by>",
|
|
@@ -120,6 +127,7 @@
|
|
|
120
127
|
"Niklas Närhinen <niklas@narhinen.net>",
|
|
121
128
|
"Niyaz Akhmetov <axmet180@gmail.com>",
|
|
122
129
|
"Noah Davis <noahd1@yahoo.com>",
|
|
130
|
+
"Oliver Odo (https://github.com/olivierodo)",
|
|
123
131
|
"Oliver Rogers <oli.rogers@gmail.com>",
|
|
124
132
|
"Olivier Melcher <olivier.melcher@gmail.com>",
|
|
125
133
|
"Olle Jonsson <olle.jonsson@gmail.com>",
|
|
@@ -129,8 +137,10 @@
|
|
|
129
137
|
"please-rewrite <please-rewrite@users.noreply.github.com>",
|
|
130
138
|
"plocket <plocket@users.noreply.github.com>",
|
|
131
139
|
"Renier Morales <renier@morales-rodriguez.net>",
|
|
140
|
+
"Ricardo Albuquerque (https://github.com/ricalbuquerque)",
|
|
132
141
|
"Rick Lee-Morlang <rick@lee-morlang.com>",
|
|
133
142
|
"RolandArgos <roland.ormrod@argos.co.uk>",
|
|
143
|
+
"Ronald Chen (https://github.com/Pyrolistical)",
|
|
134
144
|
"Sam Saccone <sam@samx.it>",
|
|
135
145
|
"Scott Deakin <scott.deakin@kantar.com>",
|
|
136
146
|
"seantdg <sm.davis@gmx.com>",
|
|
@@ -190,10 +200,10 @@
|
|
|
190
200
|
},
|
|
191
201
|
"types": "./lib/index.d.ts",
|
|
192
202
|
"engines": {
|
|
193
|
-
"node": "
|
|
203
|
+
"node": "14 || 16 || >=18"
|
|
194
204
|
},
|
|
195
205
|
"enginesTested": {
|
|
196
|
-
"node": "
|
|
206
|
+
"node": "14 || 16 || 18 || 19"
|
|
197
207
|
},
|
|
198
208
|
"dependencies": {
|
|
199
209
|
"@cucumber/ci-environment": "9.1.0",
|