qase-javascript-commons 2.2.5 → 2.2.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 +12 -0
- package/dist/reporters/testops-reporter.js +2 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# qase-javascript-commons@2.2.7
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
Fixed an issue then the reporter didn't create defects for failed tests.
|
|
6
|
+
|
|
7
|
+
# qase-javascript-commons@2.2.6
|
|
8
|
+
|
|
9
|
+
## What's new
|
|
10
|
+
|
|
11
|
+
Added error handling for HTTP status 422 in API responses, returning a descriptive QaseError with relevant details.
|
|
12
|
+
|
|
1
13
|
# qase-javascript-commons@2.2.5
|
|
2
14
|
|
|
3
15
|
## What's new
|
|
@@ -233,6 +233,7 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
233
233
|
relations: this.getRelation(result.relations),
|
|
234
234
|
message: result.message,
|
|
235
235
|
fields: result.fields,
|
|
236
|
+
defect: this.defect,
|
|
236
237
|
};
|
|
237
238
|
this.logger.logDebug(`Transformed result: ${JSON.stringify(model)}`);
|
|
238
239
|
return model;
|
|
@@ -542,7 +543,7 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
542
543
|
if (error.response?.status === 404) {
|
|
543
544
|
return new qase_error_1.QaseError(message + ': Not found.');
|
|
544
545
|
}
|
|
545
|
-
if (error.response?.status === 400) {
|
|
546
|
+
if (error.response?.status === 400 || error.response?.status === 422) {
|
|
546
547
|
return new qase_error_1.QaseError(message + ': Bad request. Body: \n ' + JSON.stringify(model));
|
|
547
548
|
}
|
|
548
549
|
return new qase_error_1.QaseError(message, { cause: error });
|