@wdio/reporter
Advanced tools
Comparing version 8.0.13 to 8.0.14
@@ -1,4 +0,4 @@ | ||
import { Hook } from './hook.js'; | ||
import { Suite } from './suite.js'; | ||
import { Test } from './test.js'; | ||
import type { Hook } from './hook.js'; | ||
import type { Suite } from './suite.js'; | ||
import type { Test } from './test.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Main class for a runnable class (e.g. test, suite or a hook) |
@@ -1,4 +0,4 @@ | ||
import HookStats from './hook.js'; | ||
import type HookStats from './hook.js'; | ||
import RunnableStats from './runnable.js'; | ||
import TestStats from './test.js'; | ||
import type TestStats from './test.js'; | ||
import type { Tag } from '../types'; | ||
@@ -5,0 +5,0 @@ export interface Suite { |
@@ -30,4 +30,4 @@ import supportsColor from 'supports-color'; | ||
*/ | ||
if (caps.deviceName) { | ||
result = [ | ||
result = caps.deviceName | ||
? [ | ||
sanitizeString(caps.deviceName), | ||
@@ -37,6 +37,4 @@ sanitizeString(caps.platformName), | ||
sanitizeString(caps.app) | ||
]; | ||
} | ||
else { | ||
result = [ | ||
] | ||
: [ | ||
sanitizeString(caps.browserName), | ||
@@ -47,3 +45,2 @@ sanitizeString(caps.version || caps.browserVersion), | ||
]; | ||
} | ||
result = result.filter(n => n !== undefined && n !== ''); | ||
@@ -61,6 +58,8 @@ return result.join('.'); | ||
export function getErrorsFromEvent(e) { | ||
if (e.errors) | ||
if (e.errors) { | ||
return e.errors; | ||
if (e.error) | ||
} | ||
if (e.error) { | ||
return [e.error]; | ||
} | ||
return []; | ||
@@ -67,0 +66,0 @@ } |
{ | ||
"name": "@wdio/reporter", | ||
"version": "8.0.13", | ||
"version": "8.0.14", | ||
"description": "A WebdriverIO utility to help reporting all events", | ||
@@ -36,7 +36,7 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"@types/tmp": "^0.2.3", | ||
"@wdio/logger": "8.0.0", | ||
"@wdio/types": "8.0.11", | ||
"@wdio/logger": "8.0.14", | ||
"@wdio/types": "8.0.14", | ||
"diff": "^5.0.0", | ||
"object-inspect": "^1.12.0", | ||
"supports-color": "9.3.0" | ||
"supports-color": "9.3.1" | ||
}, | ||
@@ -47,3 +47,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "912db21d2cd4552a02b776ba74cae05440b076de" | ||
"gitHead": "ab58bc79c1df2e146d02a68ee444766ec371e6d2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50394
925
+ Added@wdio/logger@8.0.14(transitive)
+ Added@wdio/types@8.0.14(transitive)
+ Addedsupports-color@9.3.1(transitive)
- Removed@wdio/logger@8.0.0(transitive)
- Removed@wdio/types@8.0.11(transitive)
- Removedsupports-color@9.3.0(transitive)
Updated@wdio/logger@8.0.14
Updated@wdio/types@8.0.14
Updatedsupports-color@9.3.1