@wdio/reporter
Advanced tools
Comparing version 7.14.1 to 7.16.0
@@ -41,7 +41,7 @@ "use strict"; | ||
if (this.options.outputDir) { | ||
fs_extra_1.ensureDirSync(this.options.outputDir); | ||
(0, fs_extra_1.ensureDirSync)(this.options.outputDir); | ||
} | ||
this.outputStream = (this.options.stdout || !this.options.logFile) && this.options.writeStream | ||
? this.options.writeStream | ||
: fs_extra_1.createWriteStream(this.options.logFile); | ||
: (0, fs_extra_1.createWriteStream)(this.options.logFile); | ||
let currentTest; | ||
@@ -90,3 +90,3 @@ const rootSuite = new suite_1.default({ | ||
const hookStats = this.hooks[hook.uid]; | ||
hookStats.complete(utils_1.getErrorsFromEvent(hook)); | ||
hookStats.complete((0, utils_1.getErrorsFromEvent)(hook)); | ||
this.counts.hooks++; | ||
@@ -113,3 +113,3 @@ this.onHookEnd(hookStats); | ||
const testStat = this.tests[test.uid]; | ||
testStat.fail(utils_1.getErrorsFromEvent(test)); | ||
testStat.fail((0, utils_1.getErrorsFromEvent)(test)); | ||
this.counts.failures++; | ||
@@ -121,3 +121,3 @@ this.counts.tests++; | ||
const testStat = this.tests[test.uid]; | ||
testStat.fail(utils_1.getErrorsFromEvent(test)); | ||
testStat.fail((0, utils_1.getErrorsFromEvent)(test)); | ||
this.onTestRetry(testStat); | ||
@@ -124,0 +124,0 @@ this.retries++; |
@@ -17,3 +17,3 @@ "use strict"; | ||
this.capabilities = runner.capabilities; | ||
this.sanitizedCapabilities = utils_1.sanitizeCaps(runner.capabilities); | ||
this.sanitizedCapabilities = (0, utils_1.sanitizeCaps)(runner.capabilities); | ||
this.config = runner.config; | ||
@@ -20,0 +20,0 @@ this.specs = runner.specs; |
@@ -65,9 +65,9 @@ "use strict"; | ||
const inspectOpts = { maxStringLength }; | ||
const expected = object_inspect_1.default(err.expected, inspectOpts); | ||
const actual = object_inspect_1.default(err.actual, inspectOpts); | ||
let msg = diff_1.diffWordsWithSpace(actual, expected) | ||
const expected = (0, object_inspect_1.default)(err.expected, inspectOpts); | ||
const actual = (0, object_inspect_1.default)(err.actual, inspectOpts); | ||
let msg = (0, diff_1.diffWordsWithSpace)(actual, expected) | ||
.map((str) => (str.added | ||
? utils_1.colorLines('diff added inline', str.value) | ||
? (0, utils_1.colorLines)('diff added inline', str.value) | ||
: str.removed | ||
? utils_1.colorLines('diff removed inline', str.value) | ||
? (0, utils_1.colorLines)('diff removed inline', str.value) | ||
: str.value)) | ||
@@ -81,3 +81,3 @@ .join(''); | ||
.map(function (str, i) { | ||
return utils_1.pad(String(++i), width) + ' |' + ' ' + str; | ||
return (0, utils_1.pad)(String(++i), width) + ' |' + ' ' + str; | ||
}) | ||
@@ -87,3 +87,3 @@ .join('\n'); | ||
// legend | ||
msg = `\n${utils_1.color('diff removed inline', 'actual')} ${utils_1.color('diff added inline', 'expected')}\n\n${msg}\n`; | ||
msg = `\n${(0, utils_1.color)('diff removed inline', 'actual')} ${(0, utils_1.color)('diff added inline', 'expected')}\n\n${msg}\n`; | ||
// indent | ||
@@ -90,0 +90,0 @@ msg = msg.replace(/^/gm, ' '); |
{ | ||
"name": "@wdio/reporter", | ||
"version": "7.14.1", | ||
"version": "7.16.0", | ||
"description": "A WebdriverIO utility to help reporting all events", | ||
@@ -26,3 +26,2 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
"@types/fs-extra": "^9.0.1", | ||
"@types/tmp": "^0.2.0", | ||
"tmp": "^0.2.0" | ||
@@ -35,6 +34,7 @@ }, | ||
"@types/diff": "^5.0.0", | ||
"@types/node": "^15.12.5", | ||
"@types/node": "^16.11.1", | ||
"@types/object-inspect": "^1.8.0", | ||
"@types/supports-color": "^8.1.0", | ||
"@wdio/types": "7.14.1", | ||
"@types/tmp": "^0.2.0", | ||
"@wdio/types": "7.16.0", | ||
"diff": "^5.0.0", | ||
@@ -46,3 +46,3 @@ "fs-extra": "^10.0.0", | ||
"types": "./build/index.d.ts", | ||
"gitHead": "0f6b6089f675b303741fcb3463779ca248058ae0" | ||
"gitHead": "2b650b1def58bc7a6c22cb093548c19e63b75f80" | ||
} |
52261
2
10
+ Added@types/tmp@^0.2.0
+ Added@types/node@16.18.126(transitive)
+ Added@types/tmp@0.2.6(transitive)
+ Added@wdio/types@7.16.0(transitive)
- Removed@types/node@15.14.9(transitive)
- Removed@wdio/types@7.14.1(transitive)
Updated@types/node@^16.11.1
Updated@wdio/types@7.16.0