qase-javascript-commons 2.3.3 → 2.3.4

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,9 @@
1
+ # qase-javascript-commons@2.3.4
2
+
3
+ ## What's new
4
+
5
+ Fixed an issue with parsing tags from the `QASE_TESTOPS_RUN_TAGS` environment variable. Now tags can be passed as a comma-separated string.
6
+
1
7
  # qase-javascript-commons@2.3.3
2
8
 
3
9
  ## 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]: {
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.4",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",