qase-javascript-commons 2.3.3 → 2.3.5

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/changelog.md CHANGED
@@ -1,3 +1,15 @@
1
+ # qase-javascript-commons@2.3.5
2
+
3
+ ## What's new
4
+
5
+ Fixed a link to failed test in the console output.
6
+
7
+ # qase-javascript-commons@2.3.4
8
+
9
+ ## What's new
10
+
11
+ Fixed an issue with parsing tags from the `QASE_TESTOPS_RUN_TAGS` environment variable. Now tags can be passed as a comma-separated string.
12
+
1
13
  # qase-javascript-commons@2.3.3
2
14
 
3
15
  ## What's new
@@ -25,7 +25,7 @@ const envToConfig = (env) => ({
25
25
  title: env[env_enum_1.EnvRunEnum.title],
26
26
  description: env[env_enum_1.EnvRunEnum.description],
27
27
  complete: env[env_enum_1.EnvRunEnum.complete],
28
- tags: env[env_enum_1.EnvRunEnum.tags],
28
+ tags: env[env_enum_1.EnvRunEnum.tags]?.split(',').map(tag => tag.trim()) ?? [],
29
29
  },
30
30
  plan: {
31
31
  id: env[env_enum_1.EnvPlanEnum.id],
@@ -17,7 +17,7 @@ export interface EnvType {
17
17
  [EnvRunEnum.title]?: string;
18
18
  [EnvRunEnum.description]?: string;
19
19
  [EnvRunEnum.complete]?: boolean;
20
- [EnvRunEnum.tags]?: string[];
20
+ [EnvRunEnum.tags]?: string;
21
21
  [EnvPlanEnum.id]?: number;
22
22
  [EnvBatchEnum.size]?: number;
23
23
  [EnvLocalEnum.path]?: string;
@@ -73,10 +73,7 @@ exports.envValidationSchema = {
73
73
  nullable: true,
74
74
  },
75
75
  [env_enum_1.EnvRunEnum.tags]: {
76
- type: 'array',
77
- items: {
78
- type: 'string',
79
- },
76
+ type: 'string',
80
77
  nullable: true,
81
78
  },
82
79
  [env_enum_1.EnvPlanEnum.id]: {
@@ -166,7 +166,7 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
166
166
  }
167
167
  const baseLink = `${this.baseUrl}/run/${this.projectCode}/dashboard/${this.runId}?source=logs&status=%5B2%5D&search=`;
168
168
  if (id) {
169
- return `${baseLink}${id}`;
169
+ return `${baseLink}${this.projectCode}-${id}`;
170
170
  }
171
171
  return `${baseLink}${encodeURI(title)}`;
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",