cumulocity-cypress
Version:
Cypress commands for Cumulocity IoT
19 lines (18 loc) • 899 B
TypeScript
import { C8yPactID, C8yPactMode, C8yPactRecordingMode } from "../../shared/c8ypact";
/**
* Determines the pact mode based on the provided environment variable.
* @param envVar The environment variable to check for the mode.
*/
export declare function mode(envVar: string, defaultValue?: string): C8yPactMode;
/**
* Determines the recording mode based on the provided environment variable.
* @param envVar The environment variable to check for the recording mode.
*/
export declare function recordingMode(envVar: string): C8yPactRecordingMode;
/**
* Checks if the pact functionality is enabled based on the provided environment variable.
* @param envVar The environment variable to check for enabling the pact.
*/
export declare function isEnabled(envVar: string): boolean;
export declare function getCurrentTestId(): C8yPactID;
export declare function getSuiteTitles(suite: any): string[];