@qanalyzer/forge-mocha 1.1.2 → 1.2.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/dist/mocha.d.ts CHANGED
@@ -16,6 +16,10 @@ export type QaHelpers = {
16
16
  suite(value: string): void;
17
17
  fields(values: Record<string, string>): void;
18
18
  parameters(values: Record<string, string>): void;
19
+ /** Explicit FR43 issue key (preferred over embedding in titles). */
20
+ issueKey(key: string): void;
21
+ /** Explicit FR43 issue keys (preferred over embedding in titles). */
22
+ issueKeys(keys: string[]): void;
19
23
  ignore(): void;
20
24
  step(name: string, body: StepFn): void | Promise<void>;
21
25
  /** Sync metadata-only when no content; returns Promise when uploading. */
package/dist/mocha.js CHANGED
@@ -47,6 +47,12 @@ exports.qa = {
47
47
  parameters(values) {
48
48
  pushMeta('qa-parameters', values);
49
49
  },
50
+ issueKey(key) {
51
+ pushMeta('qa-issue-key', key);
52
+ },
53
+ issueKeys(keys) {
54
+ pushMeta('qa-issue-keys', keys);
55
+ },
50
56
  ignore() {
51
57
  pushMeta('qa-ignore', true);
52
58
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qanalyzer/forge-mocha",
3
- "version": "1.1.2",
4
- "description": "QAnalyzer Mocha reporter \u2014 ingest or file modes via @qanalyzer/forge-commons",
3
+ "version": "1.2.0",
4
+ "description": "QAnalyzer Mocha reporter ingest or file modes via @qanalyzer/forge-commons",
5
5
  "keywords": [
6
6
  "qanalyzer",
7
7
  "mocha",