@wdio/types
Advanced tools
Comparing version 8.0.0-alpha.518 to 8.0.0-alpha.537
@@ -341,2 +341,6 @@ /// <reference types="node" /> | ||
/** | ||
* Project root directory path. | ||
*/ | ||
rootDir?: string; | ||
/** | ||
* Define specs for test execution. You can either specify a glob | ||
@@ -343,0 +347,0 @@ * pattern to match multiple files at once or wrap a glob or set of |
@@ -5,10 +5,50 @@ /// <reference types="node" /> | ||
import type { EventEmitter } from 'node:events'; | ||
import type { RemoteCapability } from './Capabilities'; | ||
interface OutputFileFormatOptions { | ||
cid: string; | ||
capabilities: RemoteCapability; | ||
} | ||
export interface Options { | ||
outputDir?: string; | ||
/** | ||
* Complete path of the reporter log file. If `setLogFile` is defined, it will | ||
* be used instead of this option. | ||
*/ | ||
logFile?: string; | ||
/** | ||
* Define the filename format for the reporter log files, using the `cid` and | ||
* `capabilities`. `setLogFile` and `logFile` take precedence over this | ||
* option, if defined (in that order). | ||
* | ||
* > Note: `options.capabilities` is your capabilities object for that runner, so specifying | ||
* `${options.capabilities}` in your string will return [Object object]. You must specify which | ||
* properties of capabilities you want in your filename. | ||
* | ||
* @default `wdio-${cid}-${name}-reporter.log` | ||
* | ||
* @example | ||
* outputFileFormat: function (options) { | ||
* const { cid, capabilities } = options | ||
* const { browserName } = capabilities | ||
* return `wdio-${cid}-${browserName}-reporter.log` | ||
* } | ||
*/ | ||
outputFileFormat?: (options: OutputFileFormatOptions) => string; | ||
/** | ||
* Set the complete path for the reporter's log output, using `cid` and | ||
* the reporter's `name`. | ||
*/ | ||
setLogFile?: (cid: string, name: string) => string; | ||
/** | ||
* No log file will be created if this option is set to `true`. | ||
*/ | ||
stdout?: boolean; | ||
/** | ||
* Write to `writeStream` instead of a file. | ||
* | ||
* Note: `logFile` must not be set, unless `stdout` is set to `true`. | ||
*/ | ||
writeStream?: WriteStream | { | ||
write: (content: any) => boolean; | ||
}; | ||
stdout?: boolean; | ||
logFile?: string; | ||
/** | ||
@@ -56,2 +96,3 @@ * allow random typings from 3rd party reporters | ||
]); | ||
export {}; | ||
//# sourceMappingURL=Reporters.d.ts.map |
@@ -32,3 +32,3 @@ /// <reference types="node" /> | ||
} | ||
export interface Worker extends Omit<TestrunnerOptions, 'capabilities' | 'specs'>, EventEmitter { | ||
export interface Worker extends Omit<TestrunnerOptions, 'capabilities' | 'specs' | 'rootDir'>, EventEmitter { | ||
capabilities: RemoteCapability; | ||
@@ -35,0 +35,0 @@ caps: RemoteCapability; |
{ | ||
"name": "@wdio/types", | ||
"version": "8.0.0-alpha.518+af6190801", | ||
"version": "8.0.0-alpha.537+c2761a175", | ||
"description": "Utility package providing type information for a variety of WebdriverIO interfaces", | ||
@@ -43,3 +43,3 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
}, | ||
"gitHead": "af6190801a0ec74c6799cc993e512aecf5846c4c" | ||
"gitHead": "c2761a17597c5dfbd349445fc203183fb004c3f5" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
130241
2483