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.
- package/dist/extraReporters.js +6 -11
- package/dist/reporter.js +2 -4
- package/package.json +9 -9
- package/tsconfig.build.json +3 -1
package/dist/extraReporters.js
CHANGED
|
@@ -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
|
|
86
|
+
// Remove main reporter property
|
|
87
87
|
reporter: undefined,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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.
|
|
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.
|
|
44
|
+
"mocha": "^11.7.5",
|
|
45
45
|
"deasync-promise": "^1.0.1",
|
|
46
|
-
"qase-javascript-commons": "~2.4.
|
|
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.
|
|
52
|
-
"@types/node": "^20.
|
|
53
|
-
"@types/request": "^2.48.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
55
|
-
"@typescript-eslint/parser": "^5.
|
|
56
|
-
"eslint": "^8.
|
|
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
|
}
|