@testomatio/reporter 1.6.14 → 1.6.16-beta-xml

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.
Files changed (2) hide show
  1. package/lib/xmlReader.js +5 -2
  2. package/package.json +3 -3
package/lib/xmlReader.js CHANGED
@@ -421,7 +421,6 @@ class XmlReader {
421
421
  this.formatErrors();
422
422
  this.formatTests();
423
423
 
424
-
425
424
  const dataString = {
426
425
  ...this.stats,
427
426
  detach: this.requestParams.detach,
@@ -451,7 +450,11 @@ function reduceTestCases(prev, item) {
451
450
  }
452
451
 
453
452
  // suite inside test case
454
- if (item['test-suite'] && item['test-suite']['test-case']) testCases.push(...item['test-suite']['test-case']);
453
+ const testCase = item['test-suite']?.['test-case'];
454
+ if (testCase) {
455
+ const nestedCases = Array.isArray(testCase) ? testCase : [testCase];
456
+ testCases.push(...nestedCases);
457
+ }
455
458
 
456
459
  const suiteOutput = item['system-out'] || item.output || item.log || '';
457
460
  const suiteErr = item['system-err'] || item.output || item.log || '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "1.6.14",
3
+ "version": "1.6.16-beta-xml",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "typings": "typings/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@aws-sdk/client-s3": "^3.279.0",
12
12
  "@aws-sdk/lib-storage": "^3.279.0",
13
- "@octokit/rest": "^19.0.5",
13
+ "@octokit/rest": "^20.1.2",
14
14
  "aws-sdk": "^2.1072.0",
15
15
  "axios": "^1.6.2",
16
16
  "axios-retry": "^3.9.1",
@@ -76,7 +76,7 @@
76
76
  "jasmine": "^3.10.0",
77
77
  "jest": "^27.4.7",
78
78
  "jsdom": "^22.1.0",
79
- "mocha": "^9.2.0",
79
+ "mocha": "^11.1.0",
80
80
  "mock-http-server": "^1.4.5",
81
81
  "pino": "^8.15.0",
82
82
  "prettier": "^3.2.5",