@wdio/sauce-service
Advanced tools
Comparing version 9.0.0-alpha.115 to 9.0.0-alpha.321
@@ -13,3 +13,3 @@ import { type SauceConnectOptions, type SauceConnectInstance } from 'saucelabs'; | ||
*/ | ||
onPrepare(config: Options.Testrunner, capabilities: Capabilities.RemoteCapabilities): Promise<void>; | ||
onPrepare(_: Options.Testrunner, capabilities: Capabilities.TestrunnerCapabilities): Promise<void>; | ||
startTunnel(sauceConnectOpts: SauceConnectOptions, retryCount?: number): Promise<SauceConnectInstance>; | ||
@@ -16,0 +16,0 @@ /** |
@@ -22,3 +22,3 @@ import { performance, PerformanceObserver } from 'node:perf_hooks'; | ||
*/ | ||
async onPrepare(config, capabilities) { | ||
async onPrepare(_, capabilities) { | ||
if (!this._options.sauceConnect) { | ||
@@ -25,0 +25,0 @@ return; |
@@ -20,3 +20,3 @@ import { default as SauceLabs } from 'saucelabs'; | ||
private _testRuns; | ||
constructor(options: SauceServiceConfig, _capabilities: Capabilities.RemoteCapability, _config: Options.Testrunner); | ||
constructor(options: SauceServiceConfig, _capabilities: Capabilities.ResolvedTestrunnerCapabilities, _config: Options.Testrunner); | ||
/** | ||
@@ -23,0 +23,0 @@ * gather information about runner |
@@ -44,3 +44,3 @@ import type { SauceConnectOptions } from 'saucelabs'; | ||
*/ | ||
setJobName?: (config: Options.Testrunner, capabilities: Capabilities.RemoteCapability, suiteTitle: string) => string; | ||
setJobName?: (config: Options.Testrunner, capabilities: Capabilities.ResolvedTestrunnerCapabilities, suiteTitle: string) => string; | ||
} | ||
@@ -47,0 +47,0 @@ export interface Provider { |
@@ -1,2 +0,1 @@ | ||
import type { Capabilities } from '@wdio/types'; | ||
/** | ||
@@ -44,3 +43,3 @@ * Determine if the current instance is a RDC instance. RDC tests are Real Device tests | ||
*/ | ||
export declare function isRDC(caps: Capabilities.DesiredCapabilities): boolean; | ||
export declare function isRDC(caps: WebdriverIO.Capabilities): boolean; | ||
/** | ||
@@ -51,3 +50,3 @@ * Determine if this is an EMUSIM session | ||
*/ | ||
export declare function isEmuSim(caps: Capabilities.DesiredCapabilities): boolean; | ||
export declare function isEmuSim(caps: WebdriverIO.Capabilities): boolean; | ||
/** Ensure capabilities are in the correct format for Sauce Labs | ||
@@ -58,4 +57,4 @@ * @param {string} tunnelIdentifier - The default Sauce Connect tunnel identifier | ||
*/ | ||
export declare function makeCapabilityFactory(tunnelIdentifier: string): (capability: Capabilities.DesiredCapabilities) => void; | ||
export declare function makeCapabilityFactory(tunnelIdentifier: string): (capability: WebdriverIO.Capabilities) => void; | ||
export declare function ansiRegex(): RegExp; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -44,2 +44,3 @@ /** | ||
export function isRDC(caps) { | ||
// @ts-expect-error outdated JSONWP capabilities | ||
const { 'appium:deviceName': appiumDeviceName = '', deviceName = '', platformName = '' } = caps; | ||
@@ -56,2 +57,3 @@ const name = appiumDeviceName || deviceName; | ||
export function isEmuSim(caps) { | ||
// @ts-expect-error outdated JSONWP capabilities | ||
const { 'appium:deviceName': appiumDeviceName = '', deviceName = '', platformName = '' } = caps; | ||
@@ -73,4 +75,3 @@ const name = appiumDeviceName || deviceName; | ||
} | ||
capability['sauce:options'].tunnelIdentifier = (capability.tunnelIdentifier || | ||
capability['sauce:options'].tunnelIdentifier || | ||
capability['sauce:options'].tunnelIdentifier = (capability['sauce:options'].tunnelIdentifier || | ||
tunnelIdentifier); | ||
@@ -77,0 +78,0 @@ }; |
{ | ||
"name": "@wdio/sauce-service", | ||
"version": "9.0.0-alpha.115+8196c4ccb", | ||
"version": "9.0.0-alpha.321+63953a607", | ||
"description": "WebdriverIO service that provides a better integration into Sauce Labs", | ||
@@ -33,12 +33,12 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"dependencies": { | ||
"@wdio/logger": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/types": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/utils": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/logger": "9.0.0-alpha.321+63953a607", | ||
"@wdio/types": "9.0.0-alpha.321+63953a607", | ||
"@wdio/utils": "9.0.0-alpha.321+63953a607", | ||
"ip": "^2.0.1", | ||
"saucelabs": "7.5.0", | ||
"webdriverio": "9.0.0-alpha.115+8196c4ccb" | ||
"webdriverio": "9.0.0-alpha.321+63953a607" | ||
}, | ||
"devDependencies": { | ||
"@types/ip": "^1.1.0", | ||
"@wdio/globals": "9.0.0-alpha.115+8196c4ccb" | ||
"@wdio/globals": "9.0.0-alpha.321+63953a607" | ||
}, | ||
@@ -48,3 +48,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "8196c4ccb4f66e217e161804ef549f18b60dccb3" | ||
"gitHead": "63953a6079023cb390a113fe5ce1c1b01b8e4bb6" | ||
} |
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
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
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
51425