qase-javascript-commons 2.6.4 → 2.6.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,9 @@
1
+ # qase-javascript-commons@2.6.5
2
+
3
+ ## Bug fixes
4
+
5
+ - Fixed `TypeError: Cannot read properties of undefined (reading 'length')` when publishing test results. The `ResultTransformer` now safely handles missing `tags` property on test results created as plain object literals by framework reporters (jest, cypress, playwright, cucumberjs, newman, testcafe, wdio).
6
+
1
7
  # qase-javascript-commons@2.6.3
2
8
 
3
9
  ## Internal refactoring
@@ -53,7 +53,7 @@ class ResultTransformer {
53
53
  defect: false,
54
54
  signature: result.signature,
55
55
  };
56
- if (result.tags.length > 0) {
56
+ if (result.tags && result.tags.length > 0) {
57
57
  model.fields = {
58
58
  ...model.fields,
59
59
  tags: [...new Set(result.tags)].join(','),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",