qase-javascript-commons 2.0.0-beta.10 → 2.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/changelog.md CHANGED
@@ -1,3 +1,13 @@
1
+ # qase-javascript-commons@2.0.0-beta.11
2
+
3
+ ## What's new
4
+
5
+ * The `useV2` option in the reporter's configuration will now enable using the experimental v2 API.
6
+ Before this fix, v1 API was used despite the configuration.
7
+
8
+ * Attachments from test steps will now be uploaded to Qase.
9
+ Before this fix, the reporter uploaded only the attachments made outside of any step scope.
10
+
1
11
  # qase-javascript-commons@2.0.0-beta.10
2
12
 
3
13
  ## What's new
package/dist/qase.js CHANGED
@@ -252,7 +252,7 @@ class QaseReporter {
252
252
  const { frameworkPackage, frameworkName, reporterName, environment, report = {}, testops = {}, } = options;
253
253
  switch (mode) {
254
254
  case options_1.ModeEnum.testops: {
255
- const { api: { token, headers, ...api } = {}, project, run: { title, description, ...run } = {}, plan = {}, batch = {}, uploadAttachments, } = testops;
255
+ const { api: { token, headers, ...api } = {}, project, run: { title, description, ...run } = {}, plan = {}, batch = {}, useV2, uploadAttachments, } = testops;
256
256
  if (!token) {
257
257
  throw new Error(`Either "testops.api.token" parameter or "${env_1.EnvApiEnum.token}" environment variable is required in "testops" mode`);
258
258
  }
@@ -277,6 +277,7 @@ class QaseReporter {
277
277
  },
278
278
  plan,
279
279
  batch,
280
+ useV2,
280
281
  }, apiClient, typeof environment === 'number' ? environment : undefined);
281
282
  }
282
283
  case options_1.ModeEnum.report: {
@@ -241,10 +241,10 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
241
241
  const resultStep = {
242
242
  data: {
243
243
  action: '',
244
- attachments: attachmentHashes,
245
244
  },
246
245
  execution: {
247
246
  status: TestOpsReporter.stepStatusMap[step.execution.status],
247
+ attachments: attachmentHashes,
248
248
  },
249
249
  };
250
250
  if (step.step_type === models_1.StepType.TEXT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.11",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",