@devicecloud.dev/dcd
Version:
Better cloud maestro testing
25 lines (24 loc) • 1.03 kB
TypeScript
export declare function getFlowsToRunInSequence(paths: {
[key: string]: string;
}, flowOrder: string[]): string[];
export declare function isFlowFile(filePath: string): boolean;
export declare const readYamlFileAsJson: (filePath: string) => unknown;
export declare const readTestYamlFileAsJson: (filePath: string) => {
config: Record<string, unknown>;
testSteps: Record<string, unknown>[];
};
export declare function readDirectory(dir: string, filterFunction?: (filePath: string) => boolean): Promise<string[]>;
export declare const checkIfFilesExistInWorkspace: (commandName: string, command: Record<string, string> | string | string[], absoluteFilePath: string) => {
errors: string[];
files: string[];
};
interface IProcessDependencies {
config?: Record<string, unknown> | null;
input: string;
testSteps: Record<string, unknown>[];
}
export declare const processDependencies: ({ config, input, testSteps, }: IProcessDependencies) => {
allErrors: string[];
allFiles: string[];
};
export {};