@salesforce/salesforcedx-vscode-test-tools
Version:
Test automation framework for Salesforce Extensions for VS Code
19 lines (18 loc) • 1.28 kB
TypeScript
/**
* Runs a Salesforce deployment or retrieval command and validates the results
* @param operation - The operation to perform (Deploy/Retrieve)
* @param fromTo - The direction of the operation (To/From)
* @param operationType - Text to identify operation type (source tracking enabled/disabled, deploy on save)
* @param metadataType - The type of metadata being operated on
* @param fullName - The full name of the metadata item
* @param prefix - Optional prefix to check for in the output
*/
export declare const runAndValidateCommand: (operation: string, fromTo: string, operationType: string, metadataType: string, fullName: string, prefix?: string) => Promise<void>;
export declare const validateCommand: (operation: string, fromTo: string, operationType: string, metadataType: string, fullNames: string[], prefix?: string) => Promise<void>;
/**
* Determines the number of spaces needed to align the output text
* @param longestFullName - The longest full name in the list of full names
* @param currentFileName - The full name of the current file that is used to calculate the size of the spacer
* @returns - A string of spaces to align the output text
*/
export declare const calculateSpacer: (longestFullName: string, currentFileName: string) => string;