@wdio/allure-reporter 7.13.2 → 7.16.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/build/index.js +29 -29
- package/build/types.d.ts +1 -2
- package/build/types.d.ts.map +1 -1
- package/build/types.js +2 -1
- package/build/utils.js +4 -4
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -177,7 +177,7 @@ class AllureReporter extends reporter_1.default {
|
|
|
177
177
|
return labels;
|
|
178
178
|
}
|
|
179
179
|
onTestPass() {
|
|
180
|
-
utils_1.attachConsoleLogs(this._consoleOutput, this._allure);
|
|
180
|
+
(0, utils_1.attachConsoleLogs)(this._consoleOutput, this._allure);
|
|
181
181
|
if (this._options.useCucumberStepReporter) {
|
|
182
182
|
const suite = this._allure.getCurrentSuite();
|
|
183
183
|
if (suite && suite.currentStep instanceof Step) {
|
|
@@ -188,14 +188,14 @@ class AllureReporter extends reporter_1.default {
|
|
|
188
188
|
}
|
|
189
189
|
onTestFail(test) {
|
|
190
190
|
if (this._options.useCucumberStepReporter) {
|
|
191
|
-
const testStatus = utils_1.getTestStatus(test, this._config);
|
|
191
|
+
const testStatus = (0, utils_1.getTestStatus)(test, this._config);
|
|
192
192
|
const stepStatus = Object.values(constants_1.stepStatuses).indexOf(testStatus) >= 0 ?
|
|
193
193
|
testStatus : 'failed';
|
|
194
194
|
const suite = this._allure.getCurrentSuite();
|
|
195
195
|
if (suite && suite.currentStep instanceof Step) {
|
|
196
196
|
this._allure.endStep(stepStatus);
|
|
197
197
|
}
|
|
198
|
-
this._allure.endCase(testStatus, utils_1.getErrorFromFailedTest(test));
|
|
198
|
+
this._allure.endCase(testStatus, (0, utils_1.getErrorFromFailedTest)(test));
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
if (!this.isAnyTestRunning()) { // is any CASE running
|
|
@@ -204,15 +204,15 @@ class AllureReporter extends reporter_1.default {
|
|
|
204
204
|
else {
|
|
205
205
|
this._allure.getCurrentTest().name = test.title;
|
|
206
206
|
}
|
|
207
|
-
utils_1.attachConsoleLogs(this._consoleOutput, this._allure);
|
|
208
|
-
const status = utils_1.getTestStatus(test, this._config);
|
|
207
|
+
(0, utils_1.attachConsoleLogs)(this._consoleOutput, this._allure);
|
|
208
|
+
const status = (0, utils_1.getTestStatus)(test, this._config);
|
|
209
209
|
while (this._allure.getCurrentSuite().currentStep instanceof Step) {
|
|
210
210
|
this._allure.endStep(status);
|
|
211
211
|
}
|
|
212
|
-
this._allure.endCase(status, utils_1.getErrorFromFailedTest(test));
|
|
212
|
+
this._allure.endCase(status, (0, utils_1.getErrorFromFailedTest)(test));
|
|
213
213
|
}
|
|
214
214
|
onTestSkip(test) {
|
|
215
|
-
utils_1.attachConsoleLogs(this._consoleOutput, this._allure);
|
|
215
|
+
(0, utils_1.attachConsoleLogs)(this._consoleOutput, this._allure);
|
|
216
216
|
if (this._options.useCucumberStepReporter) {
|
|
217
217
|
const suite = this._allure.getCurrentSuite();
|
|
218
218
|
if (suite && suite.currentStep instanceof Step) {
|
|
@@ -238,7 +238,7 @@ class AllureReporter extends reporter_1.default {
|
|
|
238
238
|
? `${command.method} ${command.endpoint}`
|
|
239
239
|
: command.command);
|
|
240
240
|
const payload = command.body || command.params;
|
|
241
|
-
if (!utils_1.isEmpty(payload)) {
|
|
241
|
+
if (!(0, utils_1.isEmpty)(payload)) {
|
|
242
242
|
this.dumpJSON('Request', payload);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
@@ -273,14 +273,14 @@ class AllureReporter extends reporter_1.default {
|
|
|
273
273
|
return false;
|
|
274
274
|
}
|
|
275
275
|
// add beforeEach / afterEach hook as step to test
|
|
276
|
-
if (this._options.disableMochaHooks && utils_1.isMochaEachHooks(hook.title)) {
|
|
276
|
+
if (this._options.disableMochaHooks && (0, utils_1.isMochaEachHooks)(hook.title)) {
|
|
277
277
|
if (this._allure.getCurrentTest()) {
|
|
278
278
|
this._allure.startStep(hook.title);
|
|
279
279
|
}
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
282
282
|
// don't add hook as test to suite for mocha All hooks
|
|
283
|
-
if (this._options.disableMochaHooks && utils_1.isMochaAllHooks(hook.title)) {
|
|
283
|
+
if (this._options.disableMochaHooks && (0, utils_1.isMochaAllHooks)(hook.title)) {
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
// add hook as test to suite
|
|
@@ -288,11 +288,11 @@ class AllureReporter extends reporter_1.default {
|
|
|
288
288
|
}
|
|
289
289
|
onHookEnd(hook) {
|
|
290
290
|
// ignore global hooks
|
|
291
|
-
if (!hook.parent || !this._allure.getCurrentSuite() || (this._options.disableMochaHooks && !utils_1.isMochaAllHooks(hook.title) && !this._allure.getCurrentTest())) {
|
|
291
|
+
if (!hook.parent || !this._allure.getCurrentSuite() || (this._options.disableMochaHooks && !(0, utils_1.isMochaAllHooks)(hook.title) && !this._allure.getCurrentTest())) {
|
|
292
292
|
return false;
|
|
293
293
|
}
|
|
294
294
|
// set beforeEach / afterEach hook (step) status
|
|
295
|
-
if (this._options.disableMochaHooks && utils_1.isMochaEachHooks(hook.title)) {
|
|
295
|
+
if (this._options.disableMochaHooks && (0, utils_1.isMochaEachHooks)(hook.title)) {
|
|
296
296
|
if (hook.error) {
|
|
297
297
|
this._allure.endStep('failed');
|
|
298
298
|
}
|
|
@@ -303,14 +303,14 @@ class AllureReporter extends reporter_1.default {
|
|
|
303
303
|
}
|
|
304
304
|
// set hook (test) status
|
|
305
305
|
if (hook.error) {
|
|
306
|
-
if (this._options.disableMochaHooks && utils_1.isMochaAllHooks(hook.title)) {
|
|
306
|
+
if (this._options.disableMochaHooks && (0, utils_1.isMochaAllHooks)(hook.title)) {
|
|
307
307
|
this.onTestStart(hook);
|
|
308
308
|
this.attachScreenshot();
|
|
309
309
|
}
|
|
310
310
|
this.onTestFail(hook);
|
|
311
311
|
}
|
|
312
312
|
else if (this._options.disableMochaHooks || this._options.useCucumberStepReporter) {
|
|
313
|
-
if (!utils_1.isMochaAllHooks(hook.title)) {
|
|
313
|
+
if (!(0, utils_1.isMochaAllHooks)(hook.title)) {
|
|
314
314
|
this.onTestPass();
|
|
315
315
|
// remove hook from suite if it has no steps
|
|
316
316
|
if (this._allure.getCurrentTest().steps.length === 0 && !this._options.useCucumberStepReporter) {
|
|
@@ -364,7 +364,7 @@ class AllureReporter extends reporter_1.default {
|
|
|
364
364
|
return false;
|
|
365
365
|
}
|
|
366
366
|
const test = this._allure.getCurrentTest();
|
|
367
|
-
const issueLink = utils_1.getLinkByTemplate(this._options.issueLinkTemplate, issue);
|
|
367
|
+
const issueLink = (0, utils_1.getLinkByTemplate)(this._options.issueLinkTemplate, issue);
|
|
368
368
|
test.addLabel('issue', issueLink);
|
|
369
369
|
}
|
|
370
370
|
addTestId({ testId }) {
|
|
@@ -372,7 +372,7 @@ class AllureReporter extends reporter_1.default {
|
|
|
372
372
|
return false;
|
|
373
373
|
}
|
|
374
374
|
const test = this._allure.getCurrentTest();
|
|
375
|
-
const tmsLink = utils_1.getLinkByTemplate(this._options.tmsLinkTemplate, testId);
|
|
375
|
+
const tmsLink = (0, utils_1.getLinkByTemplate)(this._options.tmsLinkTemplate, testId);
|
|
376
376
|
test.addLabel('testId', tmsLink);
|
|
377
377
|
}
|
|
378
378
|
addEnvironment({ name, value }) {
|
|
@@ -458,7 +458,7 @@ class AllureReporter extends reporter_1.default {
|
|
|
458
458
|
* @param {(string)} featureName - feature name or an array of names
|
|
459
459
|
*/
|
|
460
460
|
AllureReporter.addFeature = (featureName) => {
|
|
461
|
-
utils_1.tellReporter(constants_1.events.addFeature, { featureName });
|
|
461
|
+
(0, utils_1.tellReporter)(constants_1.events.addFeature, { featureName });
|
|
462
462
|
};
|
|
463
463
|
/**
|
|
464
464
|
* Assign label to test
|
|
@@ -467,7 +467,7 @@ AllureReporter.addFeature = (featureName) => {
|
|
|
467
467
|
* @param {string} value - label value
|
|
468
468
|
*/
|
|
469
469
|
AllureReporter.addLabel = (name, value) => {
|
|
470
|
-
utils_1.tellReporter(constants_1.events.addLabel, { name, value });
|
|
470
|
+
(0, utils_1.tellReporter)(constants_1.events.addLabel, { name, value });
|
|
471
471
|
};
|
|
472
472
|
/**
|
|
473
473
|
* Assign severity to test
|
|
@@ -475,7 +475,7 @@ AllureReporter.addLabel = (name, value) => {
|
|
|
475
475
|
* @param {string} severity - severity value
|
|
476
476
|
*/
|
|
477
477
|
AllureReporter.addSeverity = (severity) => {
|
|
478
|
-
utils_1.tellReporter(constants_1.events.addSeverity, { severity });
|
|
478
|
+
(0, utils_1.tellReporter)(constants_1.events.addSeverity, { severity });
|
|
479
479
|
};
|
|
480
480
|
/**
|
|
481
481
|
* Assign issue id to test
|
|
@@ -483,7 +483,7 @@ AllureReporter.addSeverity = (severity) => {
|
|
|
483
483
|
* @param {string} issue - issue id value
|
|
484
484
|
*/
|
|
485
485
|
AllureReporter.addIssue = (issue) => {
|
|
486
|
-
utils_1.tellReporter(constants_1.events.addIssue, { issue });
|
|
486
|
+
(0, utils_1.tellReporter)(constants_1.events.addIssue, { issue });
|
|
487
487
|
};
|
|
488
488
|
/**
|
|
489
489
|
* Assign TMS test id to test
|
|
@@ -491,7 +491,7 @@ AllureReporter.addIssue = (issue) => {
|
|
|
491
491
|
* @param {string} testId - test id value
|
|
492
492
|
*/
|
|
493
493
|
AllureReporter.addTestId = (testId) => {
|
|
494
|
-
utils_1.tellReporter(constants_1.events.addTestId, { testId });
|
|
494
|
+
(0, utils_1.tellReporter)(constants_1.events.addTestId, { testId });
|
|
495
495
|
};
|
|
496
496
|
/**
|
|
497
497
|
* Assign story to test
|
|
@@ -499,7 +499,7 @@ AllureReporter.addTestId = (testId) => {
|
|
|
499
499
|
* @param {string} storyName - story name for test
|
|
500
500
|
*/
|
|
501
501
|
AllureReporter.addStory = (storyName) => {
|
|
502
|
-
utils_1.tellReporter(constants_1.events.addStory, { storyName });
|
|
502
|
+
(0, utils_1.tellReporter)(constants_1.events.addStory, { storyName });
|
|
503
503
|
};
|
|
504
504
|
/**
|
|
505
505
|
* Add environment value
|
|
@@ -508,7 +508,7 @@ AllureReporter.addStory = (storyName) => {
|
|
|
508
508
|
* @param {string} value - environment value
|
|
509
509
|
*/
|
|
510
510
|
AllureReporter.addEnvironment = (name, value) => {
|
|
511
|
-
utils_1.tellReporter(constants_1.events.addEnvironment, { name, value });
|
|
511
|
+
(0, utils_1.tellReporter)(constants_1.events.addEnvironment, { name, value });
|
|
512
512
|
};
|
|
513
513
|
/**
|
|
514
514
|
* Assign test description to test
|
|
@@ -517,7 +517,7 @@ AllureReporter.addEnvironment = (name, value) => {
|
|
|
517
517
|
* @param {string} descriptionType - description type 'text'\'html'\'markdown'
|
|
518
518
|
*/
|
|
519
519
|
AllureReporter.addDescription = (description, descriptionType) => {
|
|
520
|
-
utils_1.tellReporter(constants_1.events.addDescription, { description, descriptionType });
|
|
520
|
+
(0, utils_1.tellReporter)(constants_1.events.addDescription, { description, descriptionType });
|
|
521
521
|
};
|
|
522
522
|
/**
|
|
523
523
|
* Add attachment
|
|
@@ -530,7 +530,7 @@ AllureReporter.addAttachment = (name, content, type) => {
|
|
|
530
530
|
if (!type) {
|
|
531
531
|
type = content instanceof Buffer ? 'image/png' : typeof content === 'string' ? 'text/plain' : 'application/json';
|
|
532
532
|
}
|
|
533
|
-
utils_1.tellReporter(constants_1.events.addAttachment, { name, content, type });
|
|
533
|
+
(0, utils_1.tellReporter)(constants_1.events.addAttachment, { name, content, type });
|
|
534
534
|
};
|
|
535
535
|
/**
|
|
536
536
|
* Start allure step
|
|
@@ -538,7 +538,7 @@ AllureReporter.addAttachment = (name, content, type) => {
|
|
|
538
538
|
* @param {string} title - step name in report
|
|
539
539
|
*/
|
|
540
540
|
AllureReporter.startStep = (title) => {
|
|
541
|
-
utils_1.tellReporter(constants_1.events.startStep, title);
|
|
541
|
+
(0, utils_1.tellReporter)(constants_1.events.startStep, title);
|
|
542
542
|
};
|
|
543
543
|
/**
|
|
544
544
|
* End current allure step
|
|
@@ -549,7 +549,7 @@ AllureReporter.endStep = (status = 'passed') => {
|
|
|
549
549
|
if (!Object.values(constants_1.stepStatuses).includes(status)) {
|
|
550
550
|
throw new Error(`Step status must be ${Object.values(constants_1.stepStatuses).join(' or ')}. You tried to set "${status}"`);
|
|
551
551
|
}
|
|
552
|
-
utils_1.tellReporter(constants_1.events.endStep, status);
|
|
552
|
+
(0, utils_1.tellReporter)(constants_1.events.endStep, status);
|
|
553
553
|
};
|
|
554
554
|
/**
|
|
555
555
|
* Create allure step
|
|
@@ -566,7 +566,7 @@ AllureReporter.addStep = (title, { content, name = 'attachment', type = 'text/pl
|
|
|
566
566
|
throw new Error(`Step status must be ${Object.values(constants_1.stepStatuses).join(' or ')}. You tried to set "${status}"`);
|
|
567
567
|
}
|
|
568
568
|
const step = content ? { title, attachment: { content, name, type }, status } : { title, status };
|
|
569
|
-
utils_1.tellReporter(constants_1.events.addStep, { step });
|
|
569
|
+
(0, utils_1.tellReporter)(constants_1.events.addStep, { step });
|
|
570
570
|
};
|
|
571
571
|
/**
|
|
572
572
|
* Add additional argument to test
|
|
@@ -575,7 +575,7 @@ AllureReporter.addStep = (title, { content, name = 'attachment', type = 'text/pl
|
|
|
575
575
|
* @param {string} value - argument value
|
|
576
576
|
*/
|
|
577
577
|
AllureReporter.addArgument = (name, value) => {
|
|
578
|
-
utils_1.tellReporter(constants_1.events.addArgument, { name, value });
|
|
578
|
+
(0, utils_1.tellReporter)(constants_1.events.addArgument, { name, value });
|
|
579
579
|
};
|
|
580
580
|
exports.default = AllureReporter;
|
|
581
581
|
__exportStar(require("./types"), exports);
|
package/build/types.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface AddEnvironmentEventArgs {
|
|
|
66
66
|
name: string;
|
|
67
67
|
value: string;
|
|
68
68
|
}
|
|
69
|
-
declare enum TYPE {
|
|
69
|
+
export declare enum TYPE {
|
|
70
70
|
TEXT = "text",
|
|
71
71
|
HTML = "html",
|
|
72
72
|
MARKDOWN = "markdown"
|
|
@@ -94,5 +94,4 @@ export interface Attachment {
|
|
|
94
94
|
end(status: Status, error: Error, timestamp?: number): void;
|
|
95
95
|
toXML(): string;
|
|
96
96
|
}
|
|
97
|
-
export {};
|
|
98
97
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAA;IACxC;;OAEG;IACH,oCAAoC,CAAC,EAAE,OAAO,CAAA;IAC9C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;MAGE;IACF,cAAc,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,WAAW,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAA;IACxC;;OAEG;IACH,oCAAoC,CAAC,EAAE,OAAO,CAAA;IAC9C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;MAGE;IACF,cAAc,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,WAAW,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,oBAAY,IAAI;IACZ,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,IAAI,CAAA;CACzB;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,IAAI;IACjB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC5C,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5D,KAAK,IAAI,MAAM,CAAC;CACnB;AAED,oBAAY,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AACzF,MAAM,WAAW,UAAU;IACvB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC5C,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5D,KAAK,IAAI,MAAM,CAAC;CACnB"}
|
package/build/types.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TYPE = void 0;
|
|
3
4
|
var TYPE;
|
|
4
5
|
(function (TYPE) {
|
|
5
6
|
TYPE["TEXT"] = "text";
|
|
6
7
|
TYPE["HTML"] = "html";
|
|
7
8
|
TYPE["MARKDOWN"] = "markdown";
|
|
8
|
-
})(TYPE || (TYPE = {}));
|
|
9
|
+
})(TYPE = exports.TYPE || (exports.TYPE = {}));
|
package/build/utils.js
CHANGED
|
@@ -75,17 +75,17 @@ const getErrorFromFailedTest = (test) => {
|
|
|
75
75
|
if (test.errors && Array.isArray(test.errors)) {
|
|
76
76
|
for (let i = 0; i < test.errors.length; i += 1) {
|
|
77
77
|
if (test.errors[i].message)
|
|
78
|
-
test.errors[i].message = strip_ansi_1.default(test.errors[i].message);
|
|
78
|
+
test.errors[i].message = (0, strip_ansi_1.default)(test.errors[i].message);
|
|
79
79
|
if (test.errors[i].stack)
|
|
80
|
-
test.errors[i].stack = strip_ansi_1.default(test.errors[i].stack);
|
|
80
|
+
test.errors[i].stack = (0, strip_ansi_1.default)(test.errors[i].stack);
|
|
81
81
|
}
|
|
82
82
|
return test.errors.length === 1 ? test.errors[0] : new compoundError_1.default(...test.errors);
|
|
83
83
|
}
|
|
84
84
|
if (test.error) {
|
|
85
85
|
if (test.error.message)
|
|
86
|
-
test.error.message = strip_ansi_1.default(test.error.message);
|
|
86
|
+
test.error.message = (0, strip_ansi_1.default)(test.error.message);
|
|
87
87
|
if (test.error.stack)
|
|
88
|
-
test.error.stack = strip_ansi_1.default(test.error.stack);
|
|
88
|
+
test.error.stack = (0, strip_ansi_1.default)(test.error.stack);
|
|
89
89
|
}
|
|
90
90
|
return test.error;
|
|
91
91
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/allure-reporter",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.3",
|
|
4
4
|
"description": "A WebdriverIO reporter plugin to create Allure Test Reports",
|
|
5
5
|
"author": "Boris Osipov <osipov.boris@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-allure-reporter",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"@wdio/reporter": "7.
|
|
29
|
-
"@wdio/types": "7.
|
|
27
|
+
"@types/node": "^16.11.1",
|
|
28
|
+
"@wdio/reporter": "7.16.3",
|
|
29
|
+
"@wdio/types": "7.16.3",
|
|
30
30
|
"allure-js-commons": "^1.3.2",
|
|
31
31
|
"csv-stringify": "^5.6.2",
|
|
32
32
|
"strip-ansi": "^6.0.0"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "23e2af933060e829f03d7518089c377571c654e3"
|
|
41
41
|
}
|