jest-qase-reporter 2.1.1 → 2.1.3

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,10 @@
1
+ # jest-qase-reporter@2.1.3
2
+
3
+ ## What's new
4
+
5
+ - Added support for status filter in the test run.
6
+ - Improved error handling.
7
+
1
8
  # jest-qase-reporter@2.1.0
2
9
 
3
10
  ## What's new
package/dist/reporter.js CHANGED
@@ -235,11 +235,13 @@ class JestQaseReporter {
235
235
  }
236
236
  const ids = JestQaseReporter.getCaseId(value.title);
237
237
  const filePath = this.getCurrentTestPath(path);
238
+ // Determine status based on error type
239
+ const testStatus = (0, qase_javascript_commons_1.determineTestStatus)(error || null, value.status);
238
240
  return {
239
241
  attachments: [],
240
242
  author: null,
241
243
  execution: {
242
- status: JestQaseReporter.statusMap[value.status],
244
+ status: testStatus,
243
245
  start_time: null,
244
246
  end_time: null,
245
247
  duration: value.duration ?? 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-qase-reporter",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Qase TMS Jest Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "lodash.get": "^4.4.2",
47
47
  "lodash.has": "^4.5.2",
48
- "qase-javascript-commons": "~2.3.3",
48
+ "qase-javascript-commons": "~2.4.2",
49
49
  "uuid": "^9.0.0"
50
50
  },
51
51
  "devDependencies": {