qase-javascript-commons 2.5.8 → 2.5.9
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.5.9
|
|
2
|
+
|
|
3
|
+
## Bug fixes
|
|
4
|
+
|
|
5
|
+
- Fixed shallow copy bug in `addTestResult` when splitting multi-ID test results. The `execution` object is now deep-copied, preventing shared reference mutation that zeroed out `duration` for all copies.
|
|
6
|
+
|
|
1
7
|
# qase-javascript-commons@2.5.8
|
|
2
8
|
|
|
3
9
|
## Bug fixes
|
|
@@ -52,7 +52,7 @@ class AbstractReporter {
|
|
|
52
52
|
// if we have multiple ids, we need to create multiple test results and set duration to 0 for all but the first one
|
|
53
53
|
let firstCase = true;
|
|
54
54
|
for (const id of result.testops_id) {
|
|
55
|
-
const testResultCopy = { ...result };
|
|
55
|
+
const testResultCopy = { ...result, execution: { ...result.execution } };
|
|
56
56
|
testResultCopy.testops_id = id;
|
|
57
57
|
testResultCopy.id = (0, uuid_1.v4)();
|
|
58
58
|
if (!firstCase) {
|