testcafe-reporter-qase 2.1.0 → 2.1.2

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/dist/reporter.js +5 -17
  2. package/package.json +2 -2
package/dist/reporter.js CHANGED
@@ -192,25 +192,13 @@ class TestcafeQaseReporter {
192
192
  getSignature(fixture, title, ids, parameters) {
193
193
  const executionPath = process.cwd() + '/';
194
194
  const path = fixture.path?.replace(executionPath, '') ?? '';
195
- let signature = '';
195
+ const suites = [];
196
196
  if (path != '') {
197
- signature += path.split('/').join('::') + '::';
197
+ suites.push(...path.split('/'));
198
198
  }
199
- signature += fixture.name.toLowerCase()
200
- .replace(/\s/g, '_')
201
- + '::'
202
- + title.toLowerCase()
203
- .replace(/\s/g, '_');
204
- if (ids.length > 0) {
205
- signature += `::${ids.join('::')}`;
206
- }
207
- if (Object.keys(parameters).length > 0) {
208
- signature += '::';
209
- }
210
- signature += Object.entries(parameters)
211
- .map(([key, value]) => `{${key}:${value}}`)
212
- .join('::');
213
- return signature;
199
+ suites.push(fixture.name.toLowerCase().replace(/\s/g, '_'));
200
+ suites.push(title.toLowerCase().replace(/\s/g, '_'));
201
+ return (0, qase_javascript_commons_1.generateSignature)(ids, suites, parameters);
214
202
  }
215
203
  }
216
204
  exports.TestcafeQaseReporter = TestcafeQaseReporter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testcafe-reporter-qase",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Qase TMS TestCafe Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "author": "Qase Team <support@qase.io>",
41
41
  "license": "Apache-2.0",
42
42
  "dependencies": {
43
- "qase-javascript-commons": "~2.3.0",
43
+ "qase-javascript-commons": "~2.4.1",
44
44
  "uuid": "^9.0.0"
45
45
  },
46
46
  "peerDependencies": {