testcafe-reporter-qase 2.0.6 → 2.1.1

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
+ # qase-testcafe@2.1.0
2
+
3
+ ## What's new
4
+
5
+ - Updated to the latest minor version of the common package for improved compatibility and features.
6
+ - Fixed all ESLint warnings across the project to ensure code quality and maintainability.
7
+
1
8
  # qase-testcafe@2.0.6
2
9
 
3
10
  ## What's new
package/dist/qase.js CHANGED
@@ -8,6 +8,7 @@ exports.qase = void 0;
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const qase_javascript_commons_1 = require("qase-javascript-commons");
10
10
  const uuid_1 = require("uuid");
11
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
11
12
  class qase {
12
13
  static _qaseID = '';
13
14
  static _qaseTitle = '';
@@ -86,7 +86,7 @@ export declare class TestcafeQaseReporter {
86
86
  * @param {Record<string, string>} meta
87
87
  * @param formatError
88
88
  */
89
- reportTestDone: (title: string, testRunInfo: TestRunInfoType, meta: Record<string, string>, formatError: (error: any, prefix: string) => string) => Promise<void>;
89
+ reportTestDone: (title: string, testRunInfo: TestRunInfoType, meta: Record<string, string>, formatError: (error: unknown, prefix: string) => string) => Promise<void>;
90
90
  /**
91
91
  * @returns {Promise<void>}
92
92
  */
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.0.6",
3
+ "version": "2.1.1",
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.2.14",
43
+ "qase-javascript-commons": "~2.3.3",
44
44
  "uuid": "^9.0.0"
45
45
  },
46
46
  "peerDependencies": {