UNPKG

1.15 kBTypeScriptView Raw
1import type { Options } from '@wdio/types';
2export declare const validObjectOrArray: (object: any) => object is object | Array<any>;
3/**
4 * remove line numbers from file path, ex:
5 * `/foo:9` or `c:\bar:14:5`
6 * @param {string} filePath path to spec file
7 * @returns {string}
8 */
9export declare function removeLineNumbers(filePath: string): string;
10/**
11 * does spec file path contain Cucumber's line number, ex
12 * `/foo/bar:9` or `c:\bar\foo:14:5`
13 * @param {string|string[]} spec
14 */
15export declare function isCucumberFeatureWithLineNumber(spec: string | string[]): boolean;
16export declare function isCloudCapability(caps: WebdriverIO.Capabilities): boolean;
17/**
18 * validates configurations based on default values
19 * @param {Object} defaults object describing all allowed properties
20 * @param {Object} options option to check against
21 * @return {Object} validated config enriched with default values
22 */
23export declare function validateConfig<T>(defaults: Options.Definition<T>, options: T, keysToKeep?: (keyof T)[]): T;
24export declare function objectToEnv(params?: Record<string, any>): void;
25//# sourceMappingURL=utils.d.ts.map
\No newline at end of file