@qanalyzer/forge-vitest 1.1.1 → 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/vitest.d.ts CHANGED
@@ -20,6 +20,10 @@ export type QaHelpers = {
20
20
  suite(value: string): Promise<void>;
21
21
  fields(values: Record<string, string>): Promise<void>;
22
22
  parameters(values: Record<string, string>): Promise<void>;
23
+ /** Explicit FR43 issue key (preferred over embedding in titles). */
24
+ issueKey(key: string): Promise<void>;
25
+ /** Explicit FR43 issue keys (preferred over embedding in titles). */
26
+ issueKeys(keys: string[]): Promise<void>;
23
27
  ignore(): void;
24
28
  step(name: string, body: StepFn): Promise<void>;
25
29
  attach(attach: QaAttachInput): Promise<void>;
package/dist/vitest.js CHANGED
@@ -44,6 +44,15 @@ function createQaHelpers(annotate, titleSources) {
44
44
  body: values,
45
45
  });
46
46
  },
47
+ async issueKey(key) {
48
+ await annotate(`QA IssueKey: ${key}`, { type: 'qa-issue-key', body: key });
49
+ },
50
+ async issueKeys(keys) {
51
+ await annotate(`QA IssueKeys: ${keys.join(',')}`, {
52
+ type: 'qa-issue-keys',
53
+ body: keys,
54
+ });
55
+ },
47
56
  ignore() {
48
57
  // Sync only
49
58
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qanalyzer/forge-vitest",
3
- "version": "1.1.1",
4
- "description": "QAnalyzer Vitest reporter \u2014 ingest or file modes via @qanalyzer/forge-commons",
3
+ "version": "1.2.0",
4
+ "description": "QAnalyzer Vitest reporter ingest or file modes via @qanalyzer/forge-commons",
5
5
  "keywords": [
6
6
  "qanalyzer",
7
7
  "vitest",