allure-cucumberjs 3.0.0-beta.1 → 3.0.0-beta.11

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/dist/cjs/index.js CHANGED
@@ -12,21 +12,35 @@ Object.defineProperty(exports, "AllureCucumberTestRuntime", {
12
12
  Object.defineProperty(exports, "AllureCucumberWorld", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _world.AllureCucumberWorld;
15
+ return _legacy.AllureCucumberWorld;
16
16
  }
17
17
  });
18
18
  var _cucumber = require("@cucumber/cucumber");
19
+ var _reporter = require("allure-js-commons/sdk/reporter");
19
20
  var _runtime = require("allure-js-commons/sdk/runtime");
21
+ var _legacy = require("./legacy.js");
20
22
  var _runtime2 = require("./runtime.js");
21
- var _world = require("./world.js");
22
- (0, _cucumber.Before)(function () {
23
- // TODO: we can implement testplan logic there
24
- (0, _runtime.setGlobalTestRuntime)(
25
- // @ts-ignore
26
- new _runtime2.AllureCucumberTestRuntime({
27
- attach: this.attach,
28
- log: this.log,
29
- parameters: this.parameters
30
- }));
23
+ (0, _cucumber.BeforeAll)(() => {
24
+ (0, _runtime.setGlobalTestRuntime)(new _runtime2.AllureCucumberTestRuntime());
25
+ });
26
+ (0, _cucumber.Before)({
27
+ name: "ALLURE_FIXTURE_IGNORE"
28
+ }, scenario => {
29
+ var testPlan = (0, _reporter.parseTestPlan)();
30
+ if (!testPlan) {
31
+ return;
32
+ }
33
+ var pickle = scenario.pickle;
34
+ var fullName = "".concat(pickle.uri, "#").concat(pickle.name);
35
+ var tags = pickle.tags.map(tag => tag.name);
36
+ if (!(0, _reporter.includedInTestPlan)(testPlan, {
37
+ fullName,
38
+ tags
39
+ })) {
40
+ // we can't use regular message or Allure facade since we need label to be added
41
+ // to test, not fixture
42
+ _cucumber.world.attach(Buffer.from("allure-skip"), "application/vnd.allure.skipcucumber+json");
43
+ return "skipped";
44
+ }
31
45
  });
32
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_cucumber","require","_runtime","_runtime2","_world","Before","setGlobalTestRuntime","AllureCucumberTestRuntime","attach","log","parameters"],"sources":["../../src/index.ts"],"sourcesContent":["import { Before } from \"@cucumber/cucumber\";\nimport { setGlobalTestRuntime } from \"allure-js-commons/sdk/runtime\";\nimport { AllureCucumberTestRuntime } from \"./runtime.js\";\nimport { AllureCucumberWorld } from \"./world.js\";\n\nBefore(function () {\n // TODO: we can implement testplan logic there\n setGlobalTestRuntime(\n // @ts-ignore\n new AllureCucumberTestRuntime({\n attach: this.attach,\n log: this.log,\n parameters: this.parameters,\n }),\n );\n});\n\nexport { AllureCucumberTestRuntime, AllureCucumberWorld };\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,gBAAM,EAAC,YAAY;EACjB;EACA,IAAAC,6BAAoB;EAClB;EACA,IAAIC,mCAAyB,CAAC;IAC5BC,MAAM,EAAE,IAAI,CAACA,MAAM;IACnBC,GAAG,EAAE,IAAI,CAACA,GAAG;IACbC,UAAU,EAAE,IAAI,CAACA;EACnB,CAAC,CACH,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_cucumber","require","_reporter","_runtime","_legacy","_runtime2","BeforeAll","setGlobalTestRuntime","AllureCucumberTestRuntime","Before","name","scenario","testPlan","parseTestPlan","pickle","fullName","concat","uri","tags","map","tag","includedInTestPlan","world","attach","Buffer","from"],"sources":["../../src/index.ts"],"sourcesContent":["import { Before, BeforeAll, world } from \"@cucumber/cucumber\";\nimport { includedInTestPlan } from \"allure-js-commons/sdk/reporter\";\nimport { parseTestPlan } from \"allure-js-commons/sdk/reporter\";\nimport { setGlobalTestRuntime } from \"allure-js-commons/sdk/runtime\";\nimport { AllureCucumberWorld } from \"./legacy.js\";\nimport { AllureCucumberTestRuntime } from \"./runtime.js\";\n\nBeforeAll(() => {\n setGlobalTestRuntime(new AllureCucumberTestRuntime());\n});\n\nBefore({ name: \"ALLURE_FIXTURE_IGNORE\" }, (scenario) => {\n const testPlan = parseTestPlan();\n if (!testPlan) {\n return;\n }\n const pickle = scenario.pickle;\n const fullName = `${pickle.uri}#${pickle.name}`;\n const tags = pickle.tags.map((tag) => tag.name);\n\n if (!includedInTestPlan(testPlan, { fullName, tags })) {\n // we can't use regular message or Allure facade since we need label to be added\n // to test, not fixture\n world.attach(Buffer.from(\"allure-skip\"), \"application/vnd.allure.skipcucumber+json\");\n return \"skipped\";\n }\n});\n\nexport { AllureCucumberTestRuntime, AllureCucumberWorld };\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,mBAAS,EAAC,MAAM;EACd,IAAAC,6BAAoB,EAAC,IAAIC,mCAAyB,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,IAAAC,gBAAM,EAAC;EAAEC,IAAI,EAAE;AAAwB,CAAC,EAAGC,QAAQ,IAAK;EACtD,IAAMC,QAAQ,GAAG,IAAAC,uBAAa,EAAC,CAAC;EAChC,IAAI,CAACD,QAAQ,EAAE;IACb;EACF;EACA,IAAME,MAAM,GAAGH,QAAQ,CAACG,MAAM;EAC9B,IAAMC,QAAQ,MAAAC,MAAA,CAAMF,MAAM,CAACG,GAAG,OAAAD,MAAA,CAAIF,MAAM,CAACJ,IAAI,CAAE;EAC/C,IAAMQ,IAAI,GAAGJ,MAAM,CAACI,IAAI,CAACC,GAAG,CAAEC,GAAG,IAAKA,GAAG,CAACV,IAAI,CAAC;EAE/C,IAAI,CAAC,IAAAW,4BAAkB,EAACT,QAAQ,EAAE;IAAEG,QAAQ;IAAEG;EAAK,CAAC,CAAC,EAAE;IACrD;IACA;IACAI,eAAK,CAACC,MAAM,CAACC,MAAM,CAACC,IAAI,CAAC,aAAa,CAAC,EAAE,0CAA0C,CAAC;IACpF,OAAO,SAAS;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -24,96 +24,98 @@ class AllureCucumberWorld extends _cucumber.World {
24
24
  /**
25
25
  * @deprecated please use import { label } from "allure-js-commons" instead.
26
26
  */
27
- _defineProperty(this, "label", (name, value) => allure.label(name, value));
27
+ _defineProperty(this, "label", (name, value) => Promise.resolve(allure.label(name, value)));
28
28
  /**
29
29
  * @deprecated please use import { link } from "allure-js-commons" instead.
30
30
  */
31
- _defineProperty(this, "link", (type, url, name) => allure.link(url, type, name));
31
+ _defineProperty(this, "link", (type, url, name) => Promise.resolve(allure.link(url, name, type)));
32
32
  /**
33
33
  * @deprecated please use import { parameter } from "allure-js-commons" instead.
34
34
  */
35
- _defineProperty(this, "parameter", (name, value, options) => allure.parameter(name, value, options));
35
+ _defineProperty(this, "parameter", (name, value, options) => Promise.resolve(allure.parameter(name, value, options)));
36
36
  /**
37
37
  * @deprecated please use import { description } from "allure-js-commons" instead.
38
38
  */
39
- _defineProperty(this, "description", value => allure.description(value));
39
+ _defineProperty(this, "description", value => Promise.resolve(allure.description(value)));
40
40
  /**
41
41
  * @deprecated please use import { descriptionHtml } from "allure-js-commons" instead.
42
42
  */
43
- _defineProperty(this, "descriptionHtml", html => allure.descriptionHtml(html));
43
+ _defineProperty(this, "descriptionHtml", html => Promise.resolve(allure.descriptionHtml(html)));
44
44
  /**
45
45
  * @deprecated please use import { testCaseId } from "allure-js-commons" instead.
46
46
  */
47
- _defineProperty(this, "testCaseId", id => allure.testCaseId(id));
47
+ _defineProperty(this, "testCaseId", id => Promise.resolve(allure.testCaseId(id)));
48
48
  /**
49
49
  * @deprecated please use import { historyId } from "allure-js-commons" instead.
50
50
  */
51
- _defineProperty(this, "historyId", id => allure.historyId(id));
51
+ _defineProperty(this, "historyId", id => Promise.resolve(allure.historyId(id)));
52
52
  /**
53
53
  * @deprecated please use import { allureId } from "allure-js-commons" instead.
54
54
  */
55
- _defineProperty(this, "allureId", id => allure.allureId(id));
55
+ _defineProperty(this, "allureId", id => Promise.resolve(allure.allureId(id)));
56
56
  /**
57
57
  * @deprecated please use import { displayName } from "allure-js-commons" instead.
58
58
  */
59
- _defineProperty(this, "displayName", name => allure.displayName(name));
59
+ _defineProperty(this, "displayName", name => Promise.resolve(allure.displayName(name)));
60
60
  /**
61
61
  * @deprecated please use import { attachment } from "allure-js-commons" instead.
62
62
  */
63
- _defineProperty(this, "attachment", (name, content, type) => allure.attachment(name, content, type));
63
+ _defineProperty(this, "attachment", (name, content, type) => Promise.resolve(allure.attachment(name, content, {
64
+ contentType: type
65
+ })));
64
66
  /**
65
67
  * @deprecated please use import { issue } from "allure-js-commons" instead.
66
68
  */
67
- _defineProperty(this, "issue", (name, url) => allure.issue(url, name));
69
+ _defineProperty(this, "issue", (name, url) => Promise.resolve(allure.issue(url, name)));
68
70
  /**
69
71
  * @deprecated please use import { tms } from "allure-js-commons" instead.
70
72
  */
71
- _defineProperty(this, "tms", (name, url) => allure.tms(url, name));
73
+ _defineProperty(this, "tms", (name, url) => Promise.resolve(allure.tms(url, name)));
72
74
  /**
73
75
  * @deprecated please use import { epic } from "allure-js-commons" instead.
74
76
  */
75
- _defineProperty(this, "epic", name => allure.epic(name));
77
+ _defineProperty(this, "epic", name => Promise.resolve(allure.epic(name)));
76
78
  /**
77
79
  * @deprecated please use import { feature } from "allure-js-commons" instead.
78
80
  */
79
- _defineProperty(this, "feature", name => allure.feature(name));
81
+ _defineProperty(this, "feature", name => Promise.resolve(allure.feature(name)));
80
82
  /**
81
83
  * @deprecated please use import { story } from "allure-js-commons" instead.
82
84
  */
83
- _defineProperty(this, "story", name => allure.story(name));
85
+ _defineProperty(this, "story", name => Promise.resolve(allure.story(name)));
84
86
  /**
85
87
  * @deprecated please use import { suite } from "allure-js-commons" instead.
86
88
  */
87
- _defineProperty(this, "suite", name => allure.suite(name));
89
+ _defineProperty(this, "suite", name => Promise.resolve(allure.suite(name)));
88
90
  /**
89
91
  * @deprecated please use import { parentSuite } from "allure-js-commons" instead.
90
92
  */
91
- _defineProperty(this, "parentSuite", name => allure.parentSuite(name));
93
+ _defineProperty(this, "parentSuite", name => Promise.resolve(allure.parentSuite(name)));
92
94
  /**
93
95
  * @deprecated please use import { subSuite } from "allure-js-commons" instead.
94
96
  */
95
- _defineProperty(this, "subSuite", name => allure.subSuite(name));
97
+ _defineProperty(this, "subSuite", name => Promise.resolve(allure.subSuite(name)));
96
98
  /**
97
99
  * @deprecated please use import { owner } from "allure-js-commons" instead.
98
100
  */
99
- _defineProperty(this, "owner", name => allure.owner(name));
101
+ _defineProperty(this, "owner", name => Promise.resolve(allure.owner(name)));
100
102
  /**
101
103
  * @deprecated please use import { severity } from "allure-js-commons" instead.
102
104
  */
103
- _defineProperty(this, "severity", name => allure.severity(name));
105
+ _defineProperty(this, "severity", name => Promise.resolve(allure.severity(name)));
104
106
  /**
105
107
  * @deprecated please use import { layer } from "allure-js-commons" instead.
106
108
  */
107
- _defineProperty(this, "layer", name => allure.layer(name));
109
+ _defineProperty(this, "layer", name => Promise.resolve(allure.layer(name)));
108
110
  /**
109
111
  * @deprecated please use import { tag } from "allure-js-commons" instead.
110
112
  */
111
- _defineProperty(this, "tag", name => allure.tag(name));
113
+ _defineProperty(this, "tag", name => Promise.resolve(allure.tag(name)));
112
114
  /**
113
115
  * @deprecated please use import { step } from "allure-js-commons" instead.
114
116
  */
115
- _defineProperty(this, "step", (name, body) => allure.step(name, body));
117
+ _defineProperty(this, "step", (name, body) => Promise.resolve(allure.step(name, body)));
116
118
  }
117
119
  }
118
120
  exports.AllureCucumberWorld = AllureCucumberWorld;
119
- //# sourceMappingURL=world.js.map
121
+ //# sourceMappingURL=legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.js","names":["_cucumber","require","allure","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","AllureCucumberWorld","World","constructor","arguments","name","Promise","resolve","label","type","url","link","options","parameter","description","html","descriptionHtml","id","testCaseId","historyId","allureId","displayName","content","attachment","contentType","issue","tms","epic","feature","story","suite","parentSuite","subSuite","owner","severity","layer","tag","body","step","exports"],"sources":["../../src/legacy.ts"],"sourcesContent":["import { World } from \"@cucumber/cucumber\";\nimport * as allure from \"allure-js-commons\";\nimport type { ParameterOptions } from \"allure-js-commons\";\n\n/**\n * @deprecated please use api exported by \"allure-js-commons\" instead.\n */\nexport interface AllureCucumberLegacyApi {\n label: (name: string, value: string) => Promise<void>;\n link: (type: string, url: string, name?: string) => Promise<void>;\n parameter: (name: string, value: string, options?: ParameterOptions) => Promise<void>;\n description: (markdown: string) => Promise<void>;\n descriptionHtml: (html: string) => Promise<void>;\n testCaseId: (id: string) => Promise<void>;\n historyId: (id: string) => Promise<void>;\n allureId: (id: string) => Promise<void>;\n displayName: (name: string) => Promise<void>;\n attachment: (name: string, content: Buffer | string, type: string) => Promise<void>;\n issue: (name: string, url: string) => Promise<void>;\n tms: (name: string, url: string) => Promise<void>;\n epic: (name: string) => Promise<void>;\n feature: (name: string) => Promise<void>;\n story: (name: string) => Promise<void>;\n suite: (name: string) => Promise<void>;\n parentSuite: (name: string) => Promise<void>;\n subSuite: (name: string) => Promise<void>;\n owner: (name: string) => Promise<void>;\n severity: (name: string) => Promise<void>;\n layer: (name: string) => Promise<void>;\n tag: (name: string) => Promise<void>;\n step: (name: string, body: () => Promise<void>) => Promise<void>;\n}\n\n/**\n * @deprecated please use api exported by \"allure-js-commons\" instead.\n */\nexport class AllureCucumberWorld extends World implements AllureCucumberLegacyApi {\n /**\n * @deprecated please use import { label } from \"allure-js-commons\" instead.\n */\n label = (name: string, value: string) => Promise.resolve(allure.label(name, value));\n /**\n * @deprecated please use import { link } from \"allure-js-commons\" instead.\n */\n link = (type: string, url: string, name?: string) => Promise.resolve(allure.link(url, name, type));\n /**\n * @deprecated please use import { parameter } from \"allure-js-commons\" instead.\n */\n parameter = (name: string, value: string, options?: ParameterOptions) =>\n Promise.resolve(allure.parameter(name, value, options));\n /**\n * @deprecated please use import { description } from \"allure-js-commons\" instead.\n */\n description = (value: string) => Promise.resolve(allure.description(value));\n /**\n * @deprecated please use import { descriptionHtml } from \"allure-js-commons\" instead.\n */\n descriptionHtml = (html: string) => Promise.resolve(allure.descriptionHtml(html));\n /**\n * @deprecated please use import { testCaseId } from \"allure-js-commons\" instead.\n */\n testCaseId = (id: string) => Promise.resolve(allure.testCaseId(id));\n /**\n * @deprecated please use import { historyId } from \"allure-js-commons\" instead.\n */\n historyId = (id: string) => Promise.resolve(allure.historyId(id));\n /**\n * @deprecated please use import { allureId } from \"allure-js-commons\" instead.\n */\n allureId = (id: string) => Promise.resolve(allure.allureId(id));\n /**\n * @deprecated please use import { displayName } from \"allure-js-commons\" instead.\n */\n displayName = (name: string) => Promise.resolve(allure.displayName(name));\n /**\n * @deprecated please use import { attachment } from \"allure-js-commons\" instead.\n */\n attachment = (name: string, content: Buffer | string, type: string) =>\n Promise.resolve(allure.attachment(name, content, { contentType: type }));\n /**\n * @deprecated please use import { issue } from \"allure-js-commons\" instead.\n */\n issue = (name: string, url: string) => Promise.resolve(allure.issue(url, name));\n /**\n * @deprecated please use import { tms } from \"allure-js-commons\" instead.\n */\n tms = (name: string, url: string) => Promise.resolve(allure.tms(url, name));\n /**\n * @deprecated please use import { epic } from \"allure-js-commons\" instead.\n */\n epic = (name: string) => Promise.resolve(allure.epic(name));\n /**\n * @deprecated please use import { feature } from \"allure-js-commons\" instead.\n */\n feature = (name: string) => Promise.resolve(allure.feature(name));\n /**\n * @deprecated please use import { story } from \"allure-js-commons\" instead.\n */\n story = (name: string) => Promise.resolve(allure.story(name));\n /**\n * @deprecated please use import { suite } from \"allure-js-commons\" instead.\n */\n suite = (name: string) => Promise.resolve(allure.suite(name));\n /**\n * @deprecated please use import { parentSuite } from \"allure-js-commons\" instead.\n */\n parentSuite = (name: string) => Promise.resolve(allure.parentSuite(name));\n /**\n * @deprecated please use import { subSuite } from \"allure-js-commons\" instead.\n */\n subSuite = (name: string) => Promise.resolve(allure.subSuite(name));\n /**\n * @deprecated please use import { owner } from \"allure-js-commons\" instead.\n */\n owner = (name: string) => Promise.resolve(allure.owner(name));\n /**\n * @deprecated please use import { severity } from \"allure-js-commons\" instead.\n */\n severity = (name: string) => Promise.resolve(allure.severity(name));\n /**\n * @deprecated please use import { layer } from \"allure-js-commons\" instead.\n */\n layer = (name: string) => Promise.resolve(allure.layer(name));\n /**\n * @deprecated please use import { tag } from \"allure-js-commons\" instead.\n */\n tag = (name: string) => Promise.resolve(allure.tag(name));\n /**\n * @deprecated please use import { step } from \"allure-js-commons\" instead.\n */\n step = (name: string, body: () => any) => Promise.resolve(allure.step(name, body));\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA4C,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,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C+D,KAAK,CAACzB,IAAI,CAAC,CAAC;IAC7D;AACF;AACA;IAFEhB,eAAA,sBAGegB,IAAY,IAAKC,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACgE,WAAW,CAAC1B,IAAI,CAAC,CAAC;IACzE;AACF;AACA;IAFEhB,eAAA,mBAGYgB,IAAY,IAAKC,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACiE,QAAQ,CAAC3B,IAAI,CAAC,CAAC;IACnE;AACF;AACA;IAFEhB,eAAA,gBAGSgB,IAAY,IAAKC,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACkE,KAAK,CAAC5B,IAAI,CAAC,CAAC;IAC7D;AACF;AACA;IAFEhB,eAAA,mBAGYgB,IAAY,IAAKC,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACmE,QAAQ,CAAC7B,IAAI,CAAC,CAAC;IACnE;AACF;AACA;IAFEhB,eAAA,gBAGSgB,IAAY,IAAKC,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACoE,KAAK,CAAC9B,IAAI,CAAC,CAAC;IAC7D;AACF;AACA;IAFEhB,eAAA,cAGOgB,IAAY,IAAKC,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACqE,GAAG,CAAC/B,IAAI,CAAC,CAAC;IACzD;AACF;AACA;IAFEhB,eAAA,eAGO,CAACgB,IAAY,EAAEgC,IAAe,KAAK/B,OAAO,CAACC,OAAO,CAACxC,MAAM,CAACuE,IAAI,CAACjC,IAAI,EAAEgC,IAAI,CAAC,CAAC;EAAA;AACpF;AAACE,OAAA,CAAAtC,mBAAA,GAAAA,mBAAA","ignoreList":[]}
package/dist/cjs/model.js CHANGED
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ALLURE_SETUP_REPORTER_HOOK = void 0;
7
+ var ALLURE_SETUP_REPORTER_HOOK = exports.ALLURE_SETUP_REPORTER_HOOK = "__allure_reporter_setup_hook__";
2
8
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","names":[],"sources":["../../src/model.ts"],"sourcesContent":["import type { LabelName, LinkType } from \"allure-js-commons\";\nimport type { Config } from \"allure-js-commons/sdk/reporter\";\n\nexport type LabelConfig = {\n pattern: RegExp[];\n name: LabelName | string;\n};\n\nexport type LinkConfig = {\n pattern: RegExp[];\n urlTemplate: string;\n type: LinkType | string;\n};\n\nexport interface AllureCucumberReporterConfig extends Omit<Config, \"writer\" | \"links\"> {\n testMode?: boolean;\n links?: LinkConfig[];\n labels?: LabelConfig[];\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"model.js","names":["ALLURE_SETUP_REPORTER_HOOK","exports"],"sources":["../../src/model.ts"],"sourcesContent":["import type { LabelName } from \"allure-js-commons\";\nimport type { LinkConfig, LinkTypeOptions, ReporterConfig } from \"allure-js-commons/sdk/reporter\";\n\nexport const ALLURE_SETUP_REPORTER_HOOK = \"__allure_reporter_setup_hook__\";\n\nexport type LabelConfig = {\n pattern: RegExp[];\n name: LabelName | string;\n};\n\nexport type AllureCucumberLinkConfig = LinkConfig<LinkTypeOptions & { pattern: RegExp[] }>;\n\nexport interface AllureCucumberReporterConfig extends Omit<ReporterConfig, \"links\"> {\n links?: AllureCucumberLinkConfig;\n labels?: LabelConfig[];\n}\n"],"mappings":";;;;;;AAGO,IAAMA,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAG,gCAAgC","ignoreList":[]}