mocha-qase-reporter 1.1.6 → 1.1.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.
@@ -83,19 +83,14 @@ function createExtraReporters(runner, options, extraReportersConfig) {
83
83
  // Create reporter instance with clean options (without main reporter options)
84
84
  const cleanOptions = {
85
85
  ...options,
86
- // Remove main reporter specific options
86
+ // Remove main reporter property
87
87
  reporter: undefined,
88
- reporterOptions: undefined,
89
- 'reporter-option': undefined,
90
- reporterOption: undefined,
91
- // Add extra reporter specific options
92
- ...reporterOptions
88
+ // Add extra reporter specific options to all reporter option properties
89
+ // This ensures compatibility with different reporters that may expect different property names
90
+ reporterOptions,
91
+ reporterOption: reporterOptions,
92
+ 'reporter-option': reporterOptions
93
93
  };
94
- // Special handling for JSON reporter
95
- if (reporterName === 'json' && reporterOptions['output']) {
96
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
97
- cleanOptions.reporterOption = { output: reporterOptions['output'] };
98
- }
99
94
  const reporter = new ReporterClass(runner, cleanOptions);
100
95
  reporters.push(reporter);
101
96
  }
package/dist/reporter.js CHANGED
@@ -129,11 +129,9 @@ class MochaQaseReporter extends mocha_1.reporters.Base {
129
129
  output.stderr += data;
130
130
  this.testOutputs.set(test.title, output);
131
131
  });
132
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
133
- // @ts-expect-error
132
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call
134
133
  process.stdout.write = stdoutInterceptor.write.bind(stdoutInterceptor);
135
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
136
- // @ts-expect-error
134
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call
137
135
  process.stderr.write = stderrInterceptor.write.bind(stderrInterceptor);
138
136
  this.testOutputs.set(test.title, { stdout: '', stderr: '' });
139
137
  this.addMethodsToContext(test.ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha-qase-reporter",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Mocha Cypress Reporter",
5
5
  "homepage": "https://github.com/qase-tms/qase-javascript",
6
6
  "sideEffects": false,
@@ -41,19 +41,19 @@
41
41
  "author": "Qase Team <support@qase.io>",
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
- "mocha": "^11.0.0",
44
+ "mocha": "^11.7.5",
45
45
  "deasync-promise": "^1.0.1",
46
- "qase-javascript-commons": "~2.4.8",
46
+ "qase-javascript-commons": "~2.4.10",
47
47
  "uuid": "^9.0.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/deasync-promise": "^1.0.2",
51
- "@types/mocha": "^10.0.1",
52
- "@types/node": "^20.2.4",
53
- "@types/request": "^2.48.8",
54
- "@typescript-eslint/eslint-plugin": "^5.59.7",
55
- "@typescript-eslint/parser": "^5.59.7",
56
- "eslint": "^8.41.0",
51
+ "@types/mocha": "^10.0.10",
52
+ "@types/node": "^20.19.25",
53
+ "@types/request": "^2.48.13",
54
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
55
+ "@typescript-eslint/parser": "^5.62.0",
56
+ "eslint": "^8.57.1",
57
57
  "prettier": "^2.8.8"
58
58
  }
59
59
  }
@@ -2,7 +2,9 @@
2
2
  "extends": "./tsconfig.json",
3
3
 
4
4
  "compilerOptions": {
5
- "noEmit": false
5
+ "noEmit": false,
6
+ "skipLibCheck": true,
7
+ "types": []
6
8
  },
7
9
 
8
10
  "include": ["./src/**/*.ts"]