qase-javascript-commons 2.4.6 → 2.4.7

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.4.7
2
+
3
+ ## Bug fixes
4
+
5
+ Fixed issue where test results with unknown statuses were incorrectly marked as `skipped` instead of `passed` by default. Now status matching is case-insensitive for better compatibility with different test frameworks.
6
+
1
7
  # qase-javascript-commons@2.4.6
2
8
 
3
9
  ## What's new
@@ -99,5 +99,7 @@ function mapOriginalStatus(originalStatus) {
99
99
  'timedOut': test_execution_1.TestStatusEnum.failed,
100
100
  'interrupted': test_execution_1.TestStatusEnum.failed,
101
101
  };
102
- return statusMap[originalStatus] || test_execution_1.TestStatusEnum.skipped;
102
+ // Convert to lowercase for case-insensitive matching
103
+ const normalizedStatus = originalStatus.toLowerCase();
104
+ return statusMap[normalizedStatus] || test_execution_1.TestStatusEnum.skipped;
103
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",